cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Creating a record (Purchase requisition lines) for Dynamics 365 FO

Hello

 

I am struggling with understanding what type of information the flow for creating a record (purchase requisition lines) is asking for. Tere is an obligatory field named "Lines" and I have no idea what information they need for it to work. See attached picture. If anybody have any experience with this type of flow, any help would be greatly appreciated.

 

image.png

5 REPLIES 5
v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

There is no document introduce the obligatory field named "Lines", since you are creating a record in the lines entity, do you know there is a "Lines" field in the entity that is forced input?

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello Alice

 

Thanks for your answer.

The Flow does not accept a zero input to that field, so something needs to be added in order for the flow to work.

That field is not obligatory when you are inside the Dynamics 365FO environment, values get added automatically (starts at 0 for first line, then 1 for second line etc) but for some reason the flow does not accept this...I might be using the wrong entity, but I cannot see which I should be using instead...

Anonymous
Not applicable

I now get the following error when trying to create the Requisition Header:

"status": 400,
"message": "An error has occurred. Write failed for table row of type 'PurchaseRequisitionHeaderV2Entity'. Infolog: Warning: Field CompanyInfoDefault requires field ProjId to also be set; Error: validateWrite failed on data source 'PurchReqTable'.\r\nclientRequestId: ed4f7009-1f59-44ce-83e7-a855f9a6d3af",
The strange thing is that ProjId is not a required field and neither is it relevant for th
Anonymous
Not applicable

Do we have any update on this? Im having the same problem.

"An error has occurred. Write failed for table row of type 'PurchaseRequisitionHeaderV2Entity'. Infolog: Warning: Field CompanyInfoDefault requires field ProjId to also be set; Error: validateWrite failed on data source 'PurchReqTable'.\r\nclientRequestId: 291b19c4-2c6c-4c12-9066-e7e04171ccf7"
rknienieder
Microsoft
Microsoft

Don't fill in the legal entity then it works. You need the legal entity only in the item entity later.

 

rknienieder_0-1657041168133.png

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,105)