Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/salesforce_rest_api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/salesforce_rest_api",
"version": "1.10.0",
"version": "1.10.1",
"description": "Pipedream Salesforce (REST API) Components",
"main": "salesforce_rest_api.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ export default {
const { recentItems } = await this.salesforce.listSObjectTypeIds(objectType);
const ids = recentItems.map((item) => item.Id);
for (const id of ids.slice(-25)) {
const object = await this.salesforce.getSObject(objectType, id);
const event = {
body: {
"New": object,
"UserId": id,
},
};
this.processWebhookEvent(event);
const body = await this.salesforce.getSObject(objectType, id);
this.processWebhookEvent({
body,
});
}
},
async activate() {
Expand Down Expand Up @@ -80,12 +76,11 @@ export default {
},
generateWebhookMeta(data) {
const nameField = this.getNameField();
const { New: newObject } = data.body;
const {
CreatedDate: createdDate,
Id: id,
[nameField]: name,
} = newObject;
} = data.body;
const summary = `New ${this.getObjectType()} created: ${name ?? id}`;
const ts = Date.parse(createdDate);
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Case (Instant, of Selectable Type)",
key: "salesforce_rest_api-new-case-instant",
description: "Emit new event when a case is created. [See the documentation](https://sforce.co/3yPSJZy)",
version: "0.0.5",
version: "0.0.6",
props: {
salesforce: common.props.salesforce,
db: "$.service.db",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Email Template (Instant, of Selectable Type)",
key: "salesforce_rest_api-new-email-template-instant",
description: "Emit new event when an email template is created. [See the documentation](https://sforce.co/3yPSJZy)",
version: "0.0.5",
version: "0.0.6",
props: {
salesforce: common.props.salesforce,
db: "$.service.db",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "New Knowledge Article (Instant, of Selectable Type)",
key: "salesforce_rest_api-new-knowledge-article-instant",
description: "Emit new event when a knowledge article is created. [See the documentation](https://sforce.co/3yPSJZy)",
version: "0.0.5",
version: "0.0.6",
props: {
salesforce: common.props.salesforce,
db: "$.service.db",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "New Record (Instant, of Selectable Type)",
key: "salesforce_rest_api-new-record-instant",
description: "Emit new event when a record of the selected object type is created. [See the documentation](https://sforce.co/3yPSJZy)",
version: "0.2.5",
version: "0.2.6",
props: {
...common.props,
fieldsToObtain: {
Expand Down
Loading