AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 05.05.2020, 18:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1350: Modify webhook return status as needed in Power Automate
Источник: https://crmtipoftheday.com/1350/modi...power-automate
==============

Power Automate is very handy to serve as a webhook. Add When a HTTP request is received trigger and you’ll get a URL to call after you save the flow. (Genuinely curious if it should be “an HTTPinstead.)

Any flow triggered by HTTP request executes asynchronously, i.e. it returns to the caller immediately after accepting the input. Your flow by default will return to the caller with HTTP status 202 (Accepted). The problems start if you have no control over the calling party and the implementation is a complete bonker very sensitive to the return codes. For example, one of the form engines I’m using (part of the Elementor page builder in WordPress, if you must know) wouldn’t take 202 for an answer and believes that something went wrong on the other end.

To modify the return status code, simply add HTTP Response action at the end and specify any status you feel is appropriate.

For now I’m keeping it PG with status 200 but a few evil scenarios come to mind…

Cover photo by P C from Pexels



Источник: https://crmtipoftheday.com/1350/modi...power-automate
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crmtipoftheday: Tip #1345: When Power Automate picks the wrong type Blog bot Dynamics CRM: Blogs 0 28.04.2020 14:11
crmtipoftheday: Tip #1336: Find your plan in Power Platform Blog bot Dynamics CRM: Blogs 0 24.03.2020 08:11
crmtipoftheday: Tip #1322: Incorrect increment and decrement in Power Automate Blog bot Dynamics CRM: Blogs 0 11.02.2020 15:11
crmtipoftheday: Tip #1317: Make lead qualification better with Power Automate Blog bot Dynamics CRM: Blogs 0 17.12.2019 02:30
crmtipoftheday: Tip #1096: Apply Power BI theme to regular charts Blog bot Dynamics CRM: Blogs 0 03.04.2018 05:35
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 15:45.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.