cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Toms
Helper I
Helper I

Dynamics 365 Update Record - Add Date Time fields + more

welcome.

scenario is quite simple, but i am quite new to MS Flow.

 

Dynamics 365 Crm, Invoice Entity.

We have fields:

  • Days Until Payment - Whole Number
  • Invoice Date - Date Time

when Condition is met i want to add a fields into a Date Time field: Invoice Date + Days Until Payment + 3 extra days.

 

i am not able to add those fields.

 

thanks  for help

1 ACCEPTED SOLUTION

Accepted Solutions
v-lin-msft
Post Prodigy
Post Prodigy

Hi @Toms,

 

You can have a try with the following configuration.

I used fields of SharePoint instead, and create fields Day Until Payment, Invoice Date and Delay Date in a list.

Annotation 2019-05-22 132714.png

Day Until Payment, Number;

Invoice Date,  Date time;

Delay Date, Date time.

And your requirement is that adding the sum of "Invoice Date + Days Until Payment + 3 extra days" into field Delay Date. You can reference to these functions:

functions-reference#addDays

functions-reference#int

functions-reference#add

 

Step1: Get the result of the sum of "Day Unitil Payment" and "3", and convert them from floating to integer.

int(add(triggerBody()?['DayUntilPayment'],3))

Step2: Add the function addDays(InvoiceDate,integer,Format of Date)

addDays(triggerBody()?['InvoiceDate'],outputs('Compose'),'MM-dd-yyyy')

Step3: Add the result into your field Delay Date or other name.

 

You can put the function in the Expression.

Annotation 2019-05-22 132335.png

Please have a try with it and I hope it will help you.

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lin-msft
Post Prodigy
Post Prodigy

Hi @Toms,

 

You can have a try with the following configuration.

I used fields of SharePoint instead, and create fields Day Until Payment, Invoice Date and Delay Date in a list.

Annotation 2019-05-22 132714.png

Day Until Payment, Number;

Invoice Date,  Date time;

Delay Date, Date time.

And your requirement is that adding the sum of "Invoice Date + Days Until Payment + 3 extra days" into field Delay Date. You can reference to these functions:

functions-reference#addDays

functions-reference#int

functions-reference#add

 

Step1: Get the result of the sum of "Day Unitil Payment" and "3", and convert them from floating to integer.

int(add(triggerBody()?['DayUntilPayment'],3))

Step2: Add the function addDays(InvoiceDate,integer,Format of Date)

addDays(triggerBody()?['InvoiceDate'],outputs('Compose'),'MM-dd-yyyy')

Step3: Add the result into your field Delay Date or other name.

 

You can put the function in the Expression.

Annotation 2019-05-22 132335.png

Please have a try with it and I hope it will help you.

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 (4,883)