Der Frank Posted January 5, 2021 Share Posted January 5, 2021 Hello, hope someone can help me. I want to place a picture via CreateResource. The input list for fusionpro contains the name e.g "ABC" of the picture. The actual pdf I want to pick is named "ABC1112" (name + timestamp) The timestamp may change from time to time, but this shouldn't matter. As long as the picture starts with "ABC" it's the correct one. Is there any possibility to pick a picture only knowing a part of the PDF-name. Thanks in advance Frank P.S. the FP-file will not be used within Marcom Central. Quote Link to comment Share on other sites More sharing options...
jwhittaker Posted January 5, 2021 Share Posted January 5, 2021 Frank You could do something like this: var filename = Field("name") + Field("timestamp") + ".jpg"; return CreateResource(filename, "graphic", true); Jon Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 5, 2021 Share Posted January 5, 2021 If you're asking whether you can do a kind of wildcard-based search for a file on the system, like "ABC*", the answer is No, you can't, not from a rule. You would need to have a separate script or process find the matching file name and provide it to FusionPro as data. Such a workflow generally requires FusionPro Server for automation. Quote Link to comment Share on other sites More sharing options...
Der Frank Posted January 7, 2021 Author Share Posted January 7, 2021 Hi Dan, thanks for your reply. I feared this answer - it's not a regulation within FP, but with the communication to the operating system around. Your answer helped me, not to run in the wrong direction. regards Frank Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.