-
Notifications
You must be signed in to change notification settings - Fork 57
feat: support custom field create/update for salesforce, picklists for salesforce/hubspot #2041
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -137,7 +137,7 @@ app.use((err: unknown, req: Request, res: Response<{ errors: ResponseErrors }>, | |||
return res.status(500).json({ | |||
errors: [ | |||
{ | |||
id: req.id.toString(), | |||
id: req.id?.toString(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Causes issues if the json in the request body is not parsable
/* prefixed */ true | ||
); | ||
|
||
const result = await this.#client.tooling.create('CustomField', createParams); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use the Salesforce Tooling API because that's what our customer uses. Using the jsforce metadata client and/or salesforce metadata API, there are some bugs. One of them is that setting a label for a picklist item doesn't work. This functionality is required by our customer, so we must use the Tooling API to support their use case correctly.
…r salesforce/hubspot
44a0f4b
to
3d07ea0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add some documentation about which providers support picklists?
e0673ce
to
37439e1
Compare
No description provided.