cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KjoniX
Frequent Visitor

Canvas App in D365 (ModelDrivenFormIntegration) => Flow => FormsPro: BAD REQUEST FOR OTHER THAN ME!

I have made a Canvas App that is integrated in Dynamics 365.

The app is doing som magic in D365 and then send a list of recipent to Flow that distribute a FormsPro Survey. 

It works flawless for me, but for other user I get 400 BAD REQUEST.

 

I am a bit confused of how Flow and FormsPro works regaring user context.

 

In Flow (FormsPro connector) I can only list surveys that are created by me and as far as I now this is exactly how FormsPro works, you can only send your own surveys (but your can share for collaborating with others with results etc).

 

4 REPLIES 4
v-alzhan-msft
Community Support
Community Support

Hi @KjoniX ,

 

Could you please share a screenshot of your flow?

As you mentioned, you can only list surveys that are created by yourself.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

flow.PNG

 

And I get the list of recipents with this i PowerApp: 

ForAll(SelectedItems, (Sendtestsurvey.Run('E-post', Fornavn, Etternavn))); 
KjoniX
Frequent Visitor

 

Before using my embedded app, users get this even though I don't have FormsPro connection in the PowerApp. I guess this is because the connection to the flow (which use FormsPro connection). Flow will then try to send the survey in context of logged in user who does not have permission to send my survey (and as far as I know it is not possible to give other users this permission). 

 

signinprompt.PNG

KjoniX
Frequent Visitor

After having a chat with Megan Walker on her fantastic blog (https://meganvwalker.com/send-forms-pro-survey-on-case-closure/), she suggested to see if it was the D365 connector that was causing problems. 

 

Therefore I created a simple powerapp with just one button that fire my flow.

 

powerapp.PNG

 

Same issue: It work for me, but my collegues who I share the powerapp with get 400 bad request.

 

{"ErrorMessage":"System.Exception: Form name is null\r\n   at Microsoft.Forms.Pro.ApiFacade.RequestHandlers.SendEmailsForFlowRequestHandler.<ParseRequestData>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Forms.Pro.ApiFacade.RequestHandlers.SendEmailsForFlowRequestHandler.<DoValidate>d__10.MoveNext()"}

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,057)