cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KjoniX
Level: Powered On

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
Community Support Team
Community Support Team

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.

KjoniX
Level: Powered On

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))); 
KjoniX
Level: Powered On

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

KjoniX
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,593)