Date to String format

RudyS
Tera Expert

Hello,

 

I'm working on creating simple flow to send out an email to a group when a specific SCTask is closed out. The email should pull the New Hire Start Date, (which is in MM-dd-yyyy format) from the SCTask variable field. This is currently not happening, so I tried to use the Date to String transforms to convert it to String format. That also didn't work. See image of part of my flow setup. Could someone review and let me know what I'm doing incorrect here.

 

Thanks as always.

 

RudyS_1-1738618846418.png

 

RudyS_0-1738618674157.png

 

 

1 ACCEPTED SOLUTION

Hi Koteswara,

I see it's working now after I removed the Custom Format that I had selected in the Date to String transform function. 

RudyS_0-1738776399674.png

 

View solution in original post

9 REPLIES 9

KoteswaraVM
Tera Expert

Hi @RudyS ,

I tried to produce the same use case in my PDI and it worked.

Please refer to the below attached snips:

Flow designer configuration details:

KoteswaraVM_0-1738645098212.pngKoteswaraVM_1-1738645185076.png

Output: (email log - preview)

KoteswaraVM_2-1738645280987.png


I hope this information helped. If it worked, please mark my response as Helpful.



Thanks & Best Regards,
Koteswara Vara Prasad M

Hi Koteswara,
It's still now working for me. This is the full flow I created. Maybe I'm missing something.

RudyS_0-1738684722518.pngRudyS_1-1738684738619.pngRudyS_2-1738684752999.pngRudyS_3-1738684770755.png

RudyS_4-1738684835266.png

 

Hi @RudyS ,

Could you please check if there are any other SC Tasks with the same Short Description and State = Close Complete? If so, in the first step, it is possible that a different SC Task record (other than the intended one) is being pulled, which does not have the required variable value. As a result, the date field value is missing in the outgoing email.

Please validate this. Alternatively, in the first step of Lookup Catalog Task Record, we can add a filter condition to ensure validation using the SYS_ID.


KoteswaraVM_0-1738732878370.png

Other than that I don't see any issue in the snips you attached. I tried to replicate the same but it worked. I am getting the date value in both email subject and body.


Thanks & Best Regards,
Koteswara Vara Prasad M

 

Hi Koteswara,

I see it's working now after I removed the Custom Format that I had selected in the Date to String transform function. 

RudyS_0-1738776399674.png