Extract values using Substring

Hi @savithrin,

StrValue=" ID: 001
Brand: Shirt
Size: S
Color: Blue"

ArrNewline-> string
ArrNewline=StrValue.Split(Environment.NewLine.ToArray, StringSplitOptions.RemoveEmptyEntries)

Use for each activity

Arrvalue=Item.Split(":"c)
Push the value into Dictionary
Key=arrValue(0) and Value=arrValue(1)

dictPromoData(“Brand”) → you will get the value as “Shirt”
Refer this post

Regards,
Arivu

8 Likes