Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

workflowPurchaseDocuments and workflowPurchaseDocumentlines

Posted on by 5

Hello,

I have a PowerApps that is connected to a sharepoint list.

I am trying to create an automatic Purchase document (Purchase order to be specific), in Power Automate when a user submitted a request in powerapp

I managed to create the purchase document but I have no idea on how to put the details in the lines of the dynamics. Tried to create below flow but still have no luck. If there is somebody who can help, I will greatly appreciate. Thank you.

purchase-detail-lines_5F00_LI_5F00_Moment.jpgPurchase-detail_5F00_LI_5F00_Moment.jpg

pastedimage1594393488822v1.png

  • Suggested answer
    Renni Profile Picture
    Renni 958 on at
    RE: workflowPurchaseDocuments and workflowPurchaseDocumentlines

    If the manual entry is not allowed go into business central

    Search no series then tick the box to allow manual numbers on the PO number series line.

    That might work as the no on the line is referring to the item

    It will be on the create document that it will be set as that is the header of the document

  • julrob Profile Picture
    julrob 5 on at
    RE: workflowPurchaseDocuments and workflowPurchaseDocumentlines

    I have tried that before it will not allow me to do so, because it says that manual entry is not allowed. The "No." box there is the purchase order.

    And yes, the "create records 2" is where I am trying to add the item line. I can't figure out on how to connect that to "create record"

  • Renni Profile Picture
    Renni 958 on at
    RE: workflowPurchaseDocuments and workflowPurchaseDocumentlines

    Just tried to see if I could have a play on my phone but it is a premium connector action to create documents.

    On the create records 2 it looks like you are adding the item line

    On the create record try the No field under buy from vendor no field 

  • julrob Profile Picture
    julrob 5 on at
    RE: workflowPurchaseDocuments and workflowPurchaseDocumentlines
    [quote user="Renni"]

    I am not sure on the answer but willing to help if I can as I am quite interested in the subject.

    So do you have licences assigned to the user as they may only be able to access the sales quote if a team license (mentioned in the error message)

    It then is saying you have no document number submitted this is a unique document number that follows the pre-set document number and increases at a set increment normally something like PO1000 that goes up +1

    [/quote]

    Hello Renni, thank you for your help. Yes, I have the license. My problem is where can I put that unique document number in the purchasedocumentlines, it keeps saying that is zero but cannot see a field to where I can put them.

  • Suggested answer
    Renni Profile Picture
    Renni 958 on at
    RE: workflowPurchaseDocuments and workflowPurchaseDocumentlines

    I am not sure on the answer but willing to help if I can as I am quite interested in the subject.

    So do you have licences assigned to the user as they may only be able to access the sales quote if a team license (mentioned in the error message)

    It then is saying you have no document number submitted this is a unique document number that follows the pre-set document number and increases at a set increment normally something like PO1000 that goes up +1

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans