-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add static HTML/JS demo for Salesforce REST actions #18885
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
Conversation
This file contains a UI for interacting with Salesforce API actions, including retrieving, updating, upserting records, and listing custom fields.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
WalkthroughAdds comprehensive documentation and a new standalone HTML UI for demonstrating Salesforce REST API interactions. The README describes the demo framework, four action types (Get, Update, Upsert, Describe), backend endpoint contracts, and implementation details. The HTML file provides a framework-free interface with input validation and response rendering. Changes
Sequence DiagramsequenceDiagram
participant User as User (Browser)
participant UI as Salesforce UI<br/>(HTML/JS)
participant Server as Backend Server
participant SF as Salesforce API
User->>UI: Enter inputs & submit action
Note over UI: Validate required fields
UI->>UI: Set loading state
UI->>Server: POST /api/sf/[action]<br/>with payload
Note over Server: Authenticate request<br/>Handle CORS<br/>Map method overrides
Server->>SF: Call Salesforce REST API
SF-->>Server: Response (JSON/text)
Server-->>UI: Status + data
UI->>UI: Parse response<br/>Color-code result
UI-->>User: Display success/error
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🔇 Additional comments (2)
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 |
|
Thanks for reviewing! This is a pre-alpha demo mainly to visualize the Salesforce REST endpoints through the internal proxy. I can adjust endpoints or naming if needed. Thanks! |
This PR adds a minimal, framework-free HTML/JS demo under /examples to visualize four Salesforce REST API actions through the project's backend proxy.
Includes:
examples/salesforce-ui.htmlexamples/README.mdFeatures:
Next steps:
Once maintainers confirm endpoint paths and preferred objects (e.g., Account/Contact) or fields (External_Id__c), the UI can be easily adjusted.
Thanks for reviewing!
-Emanuel Ziegler Martins.
Summary by CodeRabbit
Documentation
New Features