Briefly, I am creating a prototype receipt scanning app using a tag gun pipe. I have a two-step form. In step one the user uploads the image and submits it then step 2 form opens. I have a record rule in step one that uses a pipe (as per the link above) to capture the URL of the scanned image to a text field so I can submit it to tag gun in step 2.
I CAN NOT get the pipe to pick up the URL of the Image. What I have tried so far:
I tried formatting the IMAGE URL field as a Link and also tried text. but neither helped.
I tested a simple record rule (no pipe) update the URL with the custom text “Hello World” and that worked.
I also tried a simpler text pipe that converted a comment from lower to uppercase and that DID work
I removed the 2nd step in the pipe - i.e. the action step that reformats URL but still did not pick up even a partial URL from the Image field.
Any advice on troubleshooting this would be greatly appreciated. I’m thinking because there is a TAGGUN pipe somebody must have cracked this use case somehow.
Once I get this working I will write up a full description of the build
. I simplified the pipe to one step, for now, to see if it is picking up ANYTHING. When I click on the button that triggers the pipe is puts the word “False” in the target text field. That would indicate that the pipe is not doing what I expect which is to pick up the URL of the Image (even a malformed one without the action step). No clue where to go with this at this stage
@tim.young Well after a lot of playing around and three days later on and off, I got method one above working (as per the original post).
I had originally copied the ensureLeft(‘https:’) from the linked post and pasted it in and always got an error.
Actually typing in ensureLeft(‘https:’) worked. The only difference is the proper use of single quote versus apostrophe . This forum software seems to convert single quotes to apostrophe so I can see the difference now as a I type but on the preview window it has converted the single quote to apostrophe. 3 days later I figured this out and learned alot about API’s along the way. You go to just love computers