What settings do I need to make to execute Flow when saving data via custom form on Share Point pages?

Liu, Yinsheng/刘 垠生 116 Reputation points
2021-11-16T02:14:36.637+00:00

I inserted the List to the Share Point site. Click the New button on the Share Point page. ![149573-2021-11-16-10h53-20.png][1] Then enter the necessary fields and click Save. ![149621-2021-11-16-10h53-52.png][2] The data is saved to the list normally, but the Automate of the custom form connection is not executed, and the same operation in the list page will execute the Automate. What settings do I need to make to execute Flow when saving data via custom form on Share Point pages? [1]: /api/attachments/149573-2021-11-16-10h53-20.png?platform=QnA [2]: /api/attachments/149621-2021-11-16-10h53-52.png?platform=QnA

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,289 questions
0 comments No comments
{count} votes

Accepted answer
  1. Liu, Yinsheng/刘 垠生 116 Reputation points
    2021-11-16T08:34:42.357+00:00

    I found the solution, I can't use LookUp queries and other operations in the If function in the OnSave property. But I don't know what causes this problem, it doesn't happen when using a custom form in a List, but it doesn't work in a Share point page.

    Not available on Share point pages.

    If(LookUp(
            [@DataSource],
            Title = DataCardValue1.Text,
            Status
        ).Value = "xxx",Flow())
    

    OK:

    If(DataCardValue1.Text = "xxx",Flow())
    

    Is it possible to assume that the query function cannot be used in the If condition of OnSave.


1 additional answer

Sort by: Most helpful
  1. CaseyYang-MSFT 10,456 Reputation points
    2021-11-16T08:16:52.18+00:00

    Hi anonymous user,

    Did you create this form with "Customize forms" option in Power Apps? Could you please share a screenshot of your flow’s configuration?

    Per my test, i could execute my flow successfully with "When an item is created" trigger when saving data via custom form.

    149680-1.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.