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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,943)