Custom Properties only available for use in API Poller if set to 'required'

Hey all,

I am setting up an API poller for Crestron devices and the URL needs the device-cid value which is the device MAC with a bit of extra text after and then use it as a macro ${devicecid}. Unless there's a better way to do it, I was going to set up a custom property and manually enter for each device (there are a lot of them, but they don't change so will be a 1 time thing).

I've found though that custom properties are only able to be used if they are 'required' which isn't ideal as only a few devices will need this field.

Is this expected/by design? Something wrong? Can a custom property be assigned only to some devices? Open to any suggestions.

Parents
  • I came across this issue yesterday and had the same question. The only time we'll need custom properties like this is for the dummy nodes hosting API pollers.

    An initial thought was a dropdown for a required field but that would get too unwieldy as the number of devices/queries grows, so now I'm pondering just using 'N/A' for the 99% of nodes that don't require this field. The description can say 'device MAC address or N/A if not applicable'. We're already utilising required fields for a few custom properties anyway, but I'm not the only SW admin in my org so I'll have to run this past everyone else, or just keep on manually entering the details in each API call.

Reply
  • I came across this issue yesterday and had the same question. The only time we'll need custom properties like this is for the dummy nodes hosting API pollers.

    An initial thought was a dropdown for a required field but that would get too unwieldy as the number of devices/queries grows, so now I'm pondering just using 'N/A' for the 99% of nodes that don't require this field. The description can say 'device MAC address or N/A if not applicable'. We're already utilising required fields for a few custom properties anyway, but I'm not the only SW admin in my org so I'll have to run this past everyone else, or just keep on manually entering the details in each API call.

Children
  • OK, done some research because as usual in SW land, nothing is definite. I created 3 new custom properties yesterday relating to Azure Storage accounts and my API calls failed because it claimed it couldn't find the macros. One thing I hadn't noticed previously was when you're modifying the URL you type $ and all the assigned node's custom properties pop up allowing you to select one. I changed my 3 custom properties to not being 'required' and they still appear in the list, populated.

    Only... there's an issue. On the one node where I'd populated these custom properties I changed them to be more suitable for screenshots for this reply and they're still the old values in the selection box. In SWQL Studio they're updated so I've no idea where the API poller editor is getting them from. As a test I populated them on one of the other nodes with a storage account API and my properties don't appear for that one at all.

    I have no idea what's going on. It's like the API Poller editor has a separate copy of the custom properties for assigned nodes and only updates it once a day or something. I'll see if my changes are populated after a couple of hours.

  • Logged a ticket with SW. I was right in that the custom properties for my nodes had changed to the test ones this morning, but I had to create another node too so added the correct details for the custom properties straight away and was amazed to see they populated in the API poller straight away. Unfortunately I'd made a typo in the resource group name, so I corrected it and I suspect it won't actually change until tomorrow.

    This is what appears when you type a $ in the URL field of a poller definition: