Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

PHP and getAdminURL function (1 Comment)

$
0
0

Topic by Orlando Rodrigues

Hi,

I currently need to send an attachment to a system via Web Services and SOAP message.

Here a part of the code:

                    $file = $files[$last];
                    $contentType = $file->ContentType;
                    $fileName = $file->FileName;
                    self::trace($log,"Avant getAdminURL");
                    $url = $file->getAdminURL();
                    self::trace($log,"Après getAdminURL : ".$url);
                    $fileContent = self::setCurl($url);
                    $base64EncodedFile = base64_encode($fileContent);

 

Using getAdminURL is working fine when using the Testing button in Process designer, but when the PHP code is associated to an action in OSC (rules), the code is not executed becase of getAdminURL  (working fine when putting the attachment par in comments).

 

My question is:

- is there a way to allow getAdminURL function to be launched when calling PHP file?

- if not, what is the way to send the last attachment file of an incident to another system?

 

KR,

Orlando.

 


Viewing all articles
Browse latest Browse all 2504

Trending Articles