No Output from Custom Function
Hi Guys,
This is my first ever attempt to write in deluge so please go easy.
I needed to create a custom function in Zoho Flow - to turn a full name string like "Ian Robert Smith" in to a separate output of First Name and Last Name i.e. "Ian" and "Smith" - so that I can use those variables further on in the flow.
I seem to have written a functioning function as using info I can se the information is being split down correctly.
However nothing is being output to the flow.
I was trying to put it out using MAP and struggling...I've set out put to void so I can at least save it for now. But if anyone can point out to me what I need to add to the code to get a useable output of varaibles I can map to other parts of the flow I would be grateful.
- void ExtractFirstAndLastName(string Full_Name)
- {
- nameslist = Full_Name.toCollection(" ");
- //info nameslist;
- number_names = nameslist.size();
- //info number_names;
- Last_Name = nameslist.get(nameslist.size() - 1);
- First_Name = nameslist.get(0);
- info First_Name;
- info Last_Name;
- return;
- }
Thanks for anyone who takes the time to help it is appreciated