Get a member's Community Member ID in a power survey. This
	 script will only work with live responses; test responses will not return
	 Member IDs. 
  
 
	 -  
		  In 
			 Power Survey Authoring, click the 
			 Questionnaire tab. 
		   
		
 
-  
		  On the Authoring Navigation Bar, hover over 
			 Action, and then select 
			 Script. 
		   
		
 
-  
		  Type a name for the action, and then click 
			 OK. 
		   
		
 
-  
		  Copy and paste the following script into the text box: 
		   
		  
 
			 Guid mId = GetMemberGuidId();
Set(MID, mId.ToString());  //MID can be a hidden open end question in your power survey.
 
		    
		   
			 
 
					  
						| Name 
						 | 
 
						Description 
						 | 
 
						ReturnType 
						 | 
 
					 
 
					  
						| GetMemberGuidId() 
						 | 
 
						Returns the Member ID 
						 | 
 
						Guid 
						 | 
 
					 
 
				  
 
 
		    
		 
-  
		  Click 
			 Save. 
		   
		
 
-  
		  On the Authoring Navigation Bar, hover over 
			 Question, and then select 
			 Open End. 
		   
		
 
-  
		  Name the new question 
			 MID and check if the question is placed after
			 the script. 
		   
		
 
-  
		  Click 
			 OK. 
		   
		
 
-  
		  In the top right, next to the 
			 Edit tab, select the 
			 Hidden check box. 
		   
		
 
-  
		  Click 
			 Save.