The recommended approach is to use S2S. I recommend it, but don't actually code it here: github.com/devkeydet/CrmAsyncRequestResponseSampleV2. Look at the AzureFunctionApp folder and QueueListener.cs, then AdalHelper.cs. Direct link to s2s docs is here: docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/build-web-applications-server-server-s2s-authentication. HTH
Thanks for the response Marc, I'll give it a try. My initial concern is that my Azure functions could be in a different tenant to my Dynamics organisation. This would particularly be true if I was providing a reusable FaaS model; servicing logic to many Dynamics organisations spread across many tenants. I wonder if S2S would still work in this scenario.
It would. See the multi-tenant S2S guidance. Let me know if you have any questions. If the docs aren't clear enough, you can find some blog posts if you bing/google it. If you still have questions, let me know.
This was the best, short and crisp video to understand the concept. Thanks a lot brother 🙏
This is great Marc, thank you. As an extra, do you know how an Azure Function could then authenticate back with Dynamics to read and write data?
The recommended approach is to use S2S. I recommend it, but don't actually code it here: github.com/devkeydet/CrmAsyncRequestResponseSampleV2. Look at the AzureFunctionApp folder and QueueListener.cs, then AdalHelper.cs. Direct link to s2s docs is here: docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/build-web-applications-server-server-s2s-authentication. HTH
Thanks for the response Marc, I'll give it a try. My initial concern is that my Azure functions could be in a different tenant to my Dynamics organisation. This would particularly be true if I was providing a reusable FaaS model; servicing logic to many Dynamics organisations spread across many tenants. I wonder if S2S would still work in this scenario.
It would. See the multi-tenant S2S guidance. Let me know if you have any questions. If the docs aren't clear enough, you can find some blog posts if you bing/google it. If you still have questions, let me know.
Hey, no matter what, my webhook, or in this case my requestbin doesn't receive any form of request from Dynamics