Not sure, if there is a confusion between the use of SpecificContent method of the QueueItem type.
But we could understand that the Query is to Check whether a Number/Amount is present in the subject value in the list of dictionaries, and if found then also get it’s Id value. Basically, we would get the Dictionary from the list which matches this condition.
Then, We can use an If Condition to Check if DictVar contains a value or not like below, then we convert the numeric value from Subject to the required conversion :
Amount = string.Format(new CultureInfo("de-DE"), "{0:C}", Regex.Match(dictVar("subject").ToString,"\d[\d.,]*").Value)
Id = dictVar("id").ToString
dictVar is a variable of Type Dictionary(Of String,String).
Let us know if you are facing any difficulties and also provide for which cases/inputs you get the errors, so that we can correct the method towards that approach.