Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unique Object Field Lookup

Andrew Burger
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2018

I am trying to build a request form for new server builds and I need to do a field lookup to vmware to ensure the VM name is not in use when a customer puts in a suggested server name. (forget for a moment that we allow people to choose their own server names in the first place)

Further validation with DNS and Active Directory will be done in the code for deployment, but this gets at least one of the checks complete and is a pretty solid check on name uniqueness.  Is this possible?  I believe it is probably some sort of post function check to the VMware API but I think I need a little more of a nudge in the right direction to validate this.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2018

A post-function is too late, it won't stop the user committing the new issue with the wrong data.  (Well, you can, if you deliberately crash the process, but that's a bad bad thing to do, as it loses all the input data and gives the user a crash message)

Use a validator - these return either "yes" or "no, and here's an error message".  The "no" will return the user to the create screen with all their data entered, so they can try again.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events