Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

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

Posted on by 689

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

  • Roxana Profile Picture
    Roxana 689 on at
    RE: Create an Invite. Auto Populate the field: Survey, with Power Automate Flow.

    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.

  • ChadAlt Profile Picture
    ChadAlt 367 User Group Leader on at
    RE: Create an Invite. Auto Populate the field: Survey, with Power Automate Flow.

    Looks good! Is that working for you now??

  • Suggested answer
    Roxana Profile Picture
    Roxana 689 on at
    RE: Create an Invite. Auto Populate the field: Survey, with Power Automate Flow.

    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

  • Verified answer
    ChadAlt Profile Picture
    ChadAlt 367 User Group Leader on at
    RE: Create an Invite. Auto Populate the field: Survey, with Power Automate Flow.

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans