cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline expression building

rjapala
New Contributor III

Hi
In Database i have field called “Product_ID” i need to update the field with ‘P-00001’ when i execute the first time and Second time when i execute the field should be updated with ‘P-00002’ please give me an solution how to implement using which snap.

Thanks in Advance !!

8 REPLIES 8

rjapala
New Contributor III

@darshthakkar @alchemiz Can anyone please help on this

Dheeraj
Employee
Employee

@rjapala You can use a combination of Sequence snap and Mapper snap, as shown below

image

image

The expression used for the transformation is “P-%05d”.sprintf($value)

image

rjapala
New Contributor III

Like every time trigger the task then should generate the sequence and update the Product_ID

rjapala
New Contributor III

Thank you so much @Dheeraj

I have a doubt here like how do we get each time a new sequence should i check with execute or validate