i have in dynamics crm a button.when i click the button i send a Http request to Power Automate (Flow) to run it everything thing worked fine.
i want to send a response to my java-script when the flow run finished .can anyone help me.
hi @Hedibn where is your javascript?
Proud to be a Flownaut!
sendFlowRequest = function () {
var id= Xrm.Page.data.entity.getId();
var name=Xrm.Page.data.entity.getEntityName();
var Lang= Xrm.Page.context.getUserLcid();
if (Lang ==1033)
{ alert("Margin updates itself in a few seconds. Please wait a moment on this webpage." );}
else
{alert("Der DB aktualisiert sich in ein paar Sekunden selbständig. Bitte warte so lange auf der Webseite.");}
var pathObj = {id };
parent.$.ajax({
type: "POST",
url: "https://prod-35.westeurope.logic.azure.com:443/workflows/443ba3214360476f9a483a20f15498f1/triggers/m...",
contentType: 'application/json',
data: JSON.stringify(pathObj),
success: function () {
setTimeout(function(){ Xrm.Page.data.refresh(true); },5000);}
});
}
@Hedibn your javascript is like a web service or API?
Proud to be a Flownaut!
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
44 | |
39 | |
36 | |
23 |
User | Count |
---|---|
48 | |
31 | |
30 | |
29 | |
28 |