Thanks for the sample data.
I have good news, I’ve figured out a way to convert the UUEncoded text back to a normal text variable. The other news is that we’ll have to use custom JavaScript code to do it.
I highly recommend using the free CustomJS integration for this to save on operations.
You’ll need a minimum of one “Execute Inline JavaScript Code” module:
Example Input/Output
Module Export - quick import into your scenario
You can copy and paste this module export into your scenario. This will import the modules (with fields/settings/filters) shown in my screenshots above.
-
Move your mouse over the line of code below. Copy the JSON by clicking the copy button on the right of the code, which looks like this:
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the editor.
-
Click on each imported module and re-save it for validation. There may be some errors prompting you to remap some variables and connections.
JSON module export — paste this directly in your scenario
{"subflows":[{"flow":[{"id":237,"module":"custom-js:inlineexecutev2","version":1,"parameters":{"__IMTCONN__":2457341,"jscode":"function decode($){var e=!1,n=0,r=0,x=0,F=new Buffer($),o=F.length,t=new Buffer(o);do if(n<o){var i=F[n]-32&63;if(++n,i>45)throw\"Invalid Data\";for(i<45&&(e=!0),x+=i;i>0;)decodeChars(F,n,t,r),r+=3,n+=4,i-=3;++n}else e=!0;while(!e);return t.slice(0,x).toString()}function decodeChars($,e,n,r){var x=$[e],F=$[e+1],o=$[e+2],t=$[e+3];n[r]=255&((x-32&63)<<2|(F-32&63)>>4),n[r+1]=255&((F-32&63)<<4|(o-32&63)>>2),n[r+2]=255&((o-32&63)<<6|t-32&63)}\nreturn decode(input);","returnValueType":"text"},"mapper":{"input":"{{234.output}}"},"metadata":{"designer":{"x":616,"y":-2664,"name":"UUDecode"},"parameters":[{"name":"__IMTCONN__","type":"account:custom-js2","label":"Connection","required":true},{"name":"jscode","type":"text","label":"JavaScript Code","required":true},{"name":"returnValueType","type":"select","label":"Return Type","required":true,"validate":{"enum":["text","collection","array","binary"]}}]}}]}],"metadata":{"version":1}}
Note: Did you know you can reduce the size of blueprints and module export code like the above, using the Make Blueprint Scrubber?
Hope this helps! Let me know if there are any further questions or issues.
Note: I see hundreds of posts, notifications, and messages daily on this forum, so if I missed your reply, please message me to look at your reply.
— @samliew
P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!