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