1

I would like to add a dynamic variable in addDays function named Czasookres his value is equal 14 days.

enter image description here

How can I insert this variable and is that possible ?

Examples:

addDays(utcNow(),Czasookres) - doesn't work
addDays(utcNow(),14) - working well
1
  • Hi @Cutmaster, did you try my solution given below? Is it working for you? Commented Jun 13, 2023 at 8:48

2 Answers 2

0

You need to surround your variable with variables(' ')

enter image description here

0

You have to add the variable reference using Dynamic content section.

Follow steps:

  1. Go to flow action > open Dynamic content pane

  2. Go to Expression tab

  3. add this formula: addDays(utcNow(),) and move cursor after the comma (,)

    enter image description here

  4. Click on Dynamic content option again and you will be able to select previous action outputs from there, like:

    enter image description here

  5. Select variable you want to add from dynamic content section and Click OK.

Expression should look like:

addDays(utcNow(),triggerOutputs()?['body/NumberCol'])

Where, NumberCol is the internal name of your SharePoint list column.

triggerOutputs()?['body/NumberCol'] - this part in expression will change as per your action name & action response structure.

For example: If you are using a Power automate flow variable, it will change to:

addDays(utcNow(),variables('Czasookres'))
1
  • 1
    I agree with Ganesh Sanap and feel free to let me know if you have any questions.
    – Xyza_MSFT
    Commented Jun 13, 2023 at 8:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.