web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Create an Invite. Auto Populate the field: Survey, with Power Automate Flow.

(0) ShareShare
ReportReport
Posted on by 691

Hi All, 

Please your help. In a Power Automate Flow, I have the action: "Create an Invite."

I need the field:  "Survey" be auto-populated, not manually selected in the flow.

I have tried the following syntax, 

  • msfp_survey,Guid of the Survey
  • /msfp_surveies (Guid of the Survey)
  • /msfp_surveys (Guid of the Survey)

pastedimage1660864877598v1.png

But I only get error: "BadRequest."

Error: {"ErrorMessage":"System.Exception: CreateInviteRequestHandler::RetrieveAndUpdateFormDetails:: expection while fetching form and cds url ---> Microsoft.FormsPro.Shared.Common.InvalidFormIdException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.  ---> System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. \r\n  

Thanks and best regards.

-Roxana

  • Verified answer
    ChadAlt Profile Picture
    367 User Group Leader on at

    Hi Roxana,

    Great question! I figured this out recently by selecting a survey, then clicking "Peek code" beneath the three dots of the action in Power Automate. This allows you to find the specific format that's expected in the code itself.

    From looking here, it actually expects the FormID rather than the survey's GUID. And you don't need the table name but the form ID itself. 

    pastedimage1660915597215v3.png

    The FormId can be found from using the Peek Code or by navigating into Customer Voice and looking at the URL when viewing a survey. 

    pastedimage1660915483363v2.png

    Since it looks like you have dynamic content, this will be available as the "Source survey identifier" from the Survey record. 

    If you want to make each of these steps dynamic, you can even use environment variables as shown below that store each of these values for the best experience when moving between environments. 

    pastedimage1660915255532v1.png

    Hope this helps!

    Chad Althaus

    Senior Functional Consultant

    Stoneridge Software

  • Suggested answer
    Roxana Profile Picture
    691 on at

    Hi Chad.

    Thank you for your kind answer.

    Effectively, the field:  msfp_sourcesurveyidentifier helped to fill dynamically the field:  Survey.

    Since the user selects the survey in the screen, I do the following

    1-Action Get Row by ID.  Get the fields: msfp_sourcesurveyidentifier  and _msfp_project_value

    from the table:  Surveys.

    2-Action Create a Survey Invite.  Dynamically set the fields: Survey and Project from the values taken in the point 1.

    pastedimage1661183696029v1.png

  • ChadAlt Profile Picture
    367 User Group Leader on at

    Looks good! Is that working for you now??

  • Roxana Profile Picture
    691 on at

    Yes, it is working very well.

    After those steps, I had to add a "Delay" to update  the "Survey Invite" on a custom field, otherwise I got an error of: PreConditionFailed, like the primaryKey already existed. The Delay step corrected this error.

    Now I am facing another issue, I will post in another thread.

    Thank you Chad.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 143

#2
ParthPatel249 Profile Picture

ParthPatel249 96

#3
11manish Profile Picture

11manish 92 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans