Altiris Software Dev Kit (ASDK)

 View Only

API to modify Advertisements not working

  • 1.  API to modify Advertisements not working

    Posted Mar 20, 2017 07:44 AM

    Hi,

    I have a specific requirement, where we need to run the advertisement in a specific user context (mostly the domain admin) to deploy a software to the client machine. The requirement is such because most of the end-users are not having the permissions to install softwares on their machines.

    We are using APIs to create the advertisement, but when we try to deploy the software, it runs in the context of the logged in user in the client machine.

    I tried to update the advertisement using "SetAdvertisementExAgentSettings" API in "ASDK.NS.SoftwareDelivery". We are trying to update the "bUseDefaultAgentSettings" field of the Advertisement. But apparently this field is not getting updated, even if the API returns "true".

    There are two questions that I have here:

    1. Is this the right API and the right field that I am trying to update, for the requirement that I mentioned?

    2. Why is the API not able to set the field, even if the return value says that the operation was successful?

    Help is much appreciated.

    Thanks,

    Satheesh.