Jump to content

Documentation for custom fields


Recommended Posts

We have requested this from the support team with 0 response (seems to be a common issue). We need documentation for the custom data. How do we display it, set it, etc. We would like to be able to pull information from the system via script and output to the custom field, but cannot find any documentation on how to do it.

Link to post
Share on other sites
  • 2 weeks later...

There is a guide here: https://intercom.help/pulseway/en/articles/4384286-introduction-to-custom-fields

but it's not at all clear how the fields are supposed to work as there are no specific examples to follow. Are we supposed to echo the data we want to store in the field?

For example, I have a script which installs PStools and accepts the EULA for psexec. I'd like to store the result of where the PSTools directory is located (which may be C:\Tools\PSTools or D:\Tools\PSTools) so I can use it in my script to run cleanmgr but can't see how to.

Setting the path system variable doesn't appear to work (but that's another topic) so I have resorted to hard-coding the path into subsequent scripts :huh:

@Gabor is the author - can you add some more detail into the guide please?

Link to post
Share on other sites
  • Staff
27 minutes ago, Piers said:

There is a guide here: https://intercom.help/pulseway/en/articles/4384286-introduction-to-custom-fields

but it's not at all clear how the fields are supposed to work as there are no specific examples to follow. Are we supposed to echo the data we want to store in the field?

For example, I have a script which installs PStools and accepts the EULA for psexec. I'd like to store the result of where the PSTools directory is located (which may be C:\Tools\PSTools or D:\Tools\PSTools) so I can use it in my script to run cleanmgr but can't see how to.

Setting the path system variable doesn't appear to work (but that's another topic) so I have resorted to hard-coding the path into subsequent scripts :huh:

@Gabor is the author - can you add some more detail into the guide please?

Hi,

This would be a quick way of doing it, as an example:

image.thumb.png.24fb89aa0613009851c4869289dab195.png

I'll edit the article asap with a better explanation when I can.

Thank you for pointing this out, I appreciate your comment on this matter! :)

 

Link to post
Share on other sites

This may not be entirely related, but I'd like the possibility to insert hostname in the email-notification that can be sent in an automation workflow.. Currently there is no easy way of knowing which computer the workflow was triggered on, except scrolling through the workflow history which might be a tedious task. 

 

I guess this could be achieved if we were able to insert custom fields like %pulseway.hostname% or whatever.

Link to post
Share on other sites
  • 2 months later...

@Gabor Did you purposefully insert the code as an image, so we couldn't copy and paste it to reuse in your scripts? Retyping the whole thing can lead to mistakes and the script not executing correctly.

Also, the article needs more practical examples on how to use the Custom Fields and the Custom Variables. I would like to do a check if an app is installed , update a Custom Variable and then use it in a Custom Field. It is really unclear at this point. 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...