Hi Team,
I have a button, that when clicked runs a power automate workflow successfully and displays a pop up with text. This is working fine. I would ike to add an extra element to this code. When the button is pressed display the pop up with a delay (maybe 5 seconds) and then save the form. Is this possible? My code on click is below.
var url = 'https://prod-29.australiasoutheast.logic.azure.com:443/workflows/e40495d35b194371b78d6d71bd9341ab/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=jRZQZor6VSmUD7r-_0NVnKCeuU11afrXz0FnbkB6-eU'
//send a request to start flow
var item = fd.itemId;
fetch(url, {
method: 'POST',
body: JSON.stringify({id: item}),
headers:{
'Content-Type': 'application/json'
}
})
.then(function(response) {
if (response.status !== 202) {
alert('Looks like there was a problem. Status Code: ' + response.status);
} else {
alert('Success, you have approved and submitted the Assessment Panel Report. The system will automatically notify the Hiring Manager & P&S Team. No further action is required. You may close the browser.');
}
})