cancel
Showing results for 
Search instead for 
Did you mean: 
Flexera DAWN
Flexera

Re: Access or Update FNMS Cloud Data using PowerShell

The only mechanism at this time to update records in the cloud is the Business Importer provided in the FlexNet Beacon. This provides the appropriate mapping of the source to destination fields\objects. This keeps the data integrity in tact.

Flexera kclausen
Flexera

Re: Access or Update FNMS Cloud Data using PowerShell

Jason, at the present time, the API mentioned by Chris is for extracting data. There currently is no API available to update data in the Cloud. Today, this is accomplished using the Business Adapter. Regards, Kirk
0 Kudos
piotr_j
Flexera beginner

Re: Access or Update FNMS Cloud Data using PowerShell

Hi @kclausen, @ChrisG 

I'm trying to get the report data via PS, but the returned result is zero records. I've provided the report id, tenant uid, bearer-token. I'm not getting any errors, but the result is still zero records. 

When I go to the report via WebUI, I can see the report, thought to get the results I need to "run" it (like any other custom created report). The report returns results as it should be. 

I'm a little lost here, any advice on how to troubleshoot this issue?

Verbose output:

 

VERBOSE: Calling web API at
https://COMPANY.flexnetmanager.com/ManageSoftServices/ComplianceAPIService/ComplianceAPIService.asmx
VERBOSE:
VERBOSE: SOAP request:
VERBOSE:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
   <soap:Body>
      <tem:GetCustomView>
         <tem:customViewID>5173</tem:customViewID>
         <tem:rowLimit>10</tem:rowLimit>
         <tem:tenantUID>ABCDEFGHIJKL</tem:tenantUID>
      </tem:GetCustomView>
   </soap:Body>
</soap:Envelope>
VERBOSE:
VERBOSE: POST https://COMPANY.flexnetmanager.com/ManageSoftServices/ComplianceAPIService/ComplianceAPIService.asmx with -1-byte payload
VERBOSE: received 2133-byte response of content type application/soap+xml; charset=utf-8
VERBOSE: Count of records returned: 0

Thanks,

 

No bloody A, B, C or D.
0 Kudos
Highlighted
Moderator krasmussen Moderator
Moderator

Re: Access or Update FNMS Cloud Data using PowerShell

Hi,

Try using a a content-type of text/xml

Regards

Kim

0 Kudos
piotr_j
Flexera beginner

Re: Access or Update FNMS Cloud Data using PowerShell

Hi,
Thanks for the suggestion. I've looked into the script file and see that the content type is already set to text/xml.

My line 109 says:

$result = Invoke-WebRequest -Uri $url -Headers $headers -Method Post -UseDefaultCredentials -ContentType "text/xml" -Body $soapRequestBody

I see that the response comes as:

VERBOSE: received 2133-byte response of content-type application/soap+xml; charset=utf-8

Thanks,

 

No bloody A, B, C or D.
0 Kudos