Unable to subtract variables

@loginerror @ziga.hanzic @Palaniyappan @sarathi125

Hey all experts,
Can you please help me find why am unable to subtract variables in Assign activity of Timedifference variable

Subjectbased.xaml (12.2 KB)

All the Time are to be stored in a variable of TimeSpan. we can use TimeSpa.Substract to Substract Time.

Link to refer -

–
Mukesh

2 Likes

Hi Mukesh,
Thank you so much dor the reply, So kind of you
However am getting the below error while running the file

Subjectbased.xaml (12.1 KB)

Hi @u322805,

  1. For Receivedtime and ReplyTime : with the syntax - mail.Headers(“Date.Days”) - Are you getting the Correct value in the variables ReceivedTime and ReplyTime ?

  2. Take a WriteLine and Print the Both varibles.

3.If Dates are not getting printed - Try Below
mail.Headers(“Date”)

Would Suggest to Run the Flow in Debug mode and See which assign you are getting the Exception.

–
Mukesh

@u322805

Check below post for your reference

Hope this helps you

Thanks

2 Likes

Mukesh the error is at Time difference assign activity, do you have idea why?

Main.xaml (11.9 KB)

Write Line is working perfectly fine

@Srini84 Thanks for the answer, that helped like 80% … However when I use write range activity it is overwriting the data in first cell and am able to get only one data . Also unable to assign it to a variable

Main.xaml (11.6 KB)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.