-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Salesforce - new actions #18900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Salesforce - new actions #18900
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
WalkthroughTwo new Salesforce REST API action components were added: Get Record by ID (fetches a record using a constructed SOQL query) and List Object Fields (retrieves and optionally filters object fields). The package version for Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant GetRecordAction as Get Record by ID
participant Salesforce
User->>GetRecordAction: invoke(sobjectType, recordId, fieldsToObtain)
GetRecordAction->>GetRecordAction: normalize fieldsToObtain
GetRecordAction->>GetRecordAction: build SOQL query
GetRecordAction->>Salesforce: query({ $, query })
Salesforce-->>GetRecordAction: records[]
GetRecordAction->>GetRecordAction: export "$summary"
GetRecordAction-->>User: return records[0]
sequenceDiagram
participant User
participant ListFieldsAction as List Object Fields
participant Salesforce
User->>ListFieldsAction: invoke(sobjectType, customOnly)
ListFieldsAction->>Salesforce: getFieldsForObjectType(sobjectType)
Salesforce-->>ListFieldsAction: fields[]
alt customOnly = true
ListFieldsAction->>ListFieldsAction: filter fields to custom
end
ListFieldsAction->>ListFieldsAction: export "$summary"
ListFieldsAction-->>User: return fields[]
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
components/salesforce_rest_api/actions/get-record-by-id/get-record-by-id.mjs(1 hunks)components/salesforce_rest_api/actions/list-object-fields/list-object-fields.mjs(1 hunks)components/salesforce_rest_api/package.json(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
components/salesforce_rest_api/actions/get-record-by-id/get-record-by-id.mjs (1)
components/twenty/actions/create-update-delete-record/create-update-delete-record.mjs (1)
recordId(42-42)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: Publish TypeScript components
- GitHub Check: Verify TypeScript components
- GitHub Check: Lint Code Base
- GitHub Check: pnpm publish
components/salesforce_rest_api/actions/get-record-by-id/get-record-by-id.mjs
Show resolved
Hide resolved
components/salesforce_rest_api/actions/list-object-fields/list-object-fields.mjs
Outdated
Show resolved
Hide resolved
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.
Hi @michelle0927, LGTM! Ready for QA!
For Integration QA: |
|
Hi everyone, all test cases are passed! Ready for release! Test reports
|
Resolves #18880
Summary by CodeRabbit
New Features
Chores