You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INSERT SHORT DESCRIPTION EXPLAINING THE HIGH-LEVEL REASON FOR THE NEW ISSUE HERE.
Current behavior
I'm creating a custom XML to feed into a job board, per respective job board specs.
I'm using the generateRSS section of the generateXml.ts file to create this XML.
I'm 99% done... but I can't properly call the data that resides in the "name" field for the Picker: Specialty.
Here is the 'raw data' code from my REST API on one of the jobs, as example:
"specialties":{"total":1,"data":[{"id":2000111,"name":"Neurology"}]},
which is interesting... because a similar "Picker" Category looks different, like this:
"publishedCategory":{"id":2000018,"name":"Physician"}
Here is my URL call info: (after my swimlane/Corp Token)
search/JobOrder?query=(isOpen:1%20AND%20isDeleted:0)${getQuery(appConfig)}&fields=id,title,address(city,state,zip),employmentType,dateLastPublished,publicDescription,customText3,customText4,customText5,responseUser(id),specialties1&count=500&sort=-dateLastPublished&start=0`
And if I call using this in the Children section of "job"
{ name: 'specialty', text: job.specialties } ====> produces [object Object] in the XML.
{ name: 'specialty', text: job.specialties.name } ====> produces a crash, "undefined" name property
I've tried a million different options.
the index.d.ts file shows
INSERT SHORT DESCRIPTION EXPLAINING THE HIGH-LEVEL REASON FOR THE NEW ISSUE HERE.
Current behavior
I'm creating a custom XML to feed into a job board, per respective job board specs.
I'm using the generateRSS section of the generateXml.ts file to create this XML.
I'm 99% done... but I can't properly call the data that resides in the "name" field for the Picker: Specialty.
Here is the 'raw data' code from my REST API on one of the jobs, as example:
"specialties":{"total":1,"data":[{"id":2000111,"name":"Neurology"}]},
which is interesting... because a similar "Picker" Category looks different, like this:
"publishedCategory":{"id":2000018,"name":"Physician"}
Here is my URL call info: (after my swimlane/Corp Token)
search/JobOrder?query=(isOpen:1%20AND%20isDeleted:0)${getQuery(appConfig)}&fields=id,title,address(city,state,zip),employmentType,dateLastPublished,publicDescription,customText3,customText4,customText5,responseUser(id),specialties1&count=500&sort=-dateLastPublished&start=0`
And if I call using this in the Children section of "job"
{ name: 'specialty', text: job.specialties } ====> produces [object Object] in the XML.
{ name: 'specialty', text: job.specialties.name } ====> produces a crash, "undefined" name property
I've tried a million different options.
the index.d.ts file shows
export declare type ToMany = ToManyRef | T[];
export interface ToManyRef {
total: number;
data: T[];
}
I've been working with ChatGPT on many other customizations I've done to the site, with much success. But I can't get this one figured...
This website says "ToMany" fields are pulled through the API "unnested". http://bullhorn.github.io/rest-api-docs/#get-file
Expected behavior
I just want the specialty field to flow through to my XML, like all the other data is.
Steps to replicate behavior
Screenshots
Current
Expected
The text was updated successfully, but these errors were encountered: