Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
A.Acheson
in reply to: jthzzang1KQJ5G

Hi @jthzzang1KQJ5G 

Can you indicate a few areas where your having difficulty? Any error messages, missing functionality etc?

 

I see in one area you are using an ilogic API snippet that will only work from the document the rule is launched from in this case the assembly.

 

Dim oDocNumber As String = ThisDoc.FileName(False)

 

If you need to get the filename you can use IO.Path.GetFileNameWithoutExtension() see help page here

To get filename of referenced document using System.IO methods. 

 

Dim fileName as String = IO.Path.GetFileNameWithoutExtension(refDoc.FullFileName)

 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan