cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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.

Highlighted
Frequent Visitor

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

flow.PNG

 

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

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

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

 

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

Highlighted
Frequent Visitor

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (7,769)