From ff9623b3d04cb31a72dbccd0457623a87ad90a2d Mon Sep 17 00:00:00 2001 From: SushilMallRC Date: Tue, 2 Jul 2024 15:03:58 +0530 Subject: [PATCH] Change displyed message for contact creation --- src/adapters/netsuite/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/adapters/netsuite/index.js b/src/adapters/netsuite/index.js index 499505a5..0266ccdd 100644 --- a/src/adapters/netsuite/index.js +++ b/src/adapters/netsuite/index.js @@ -530,13 +530,16 @@ async function createContact({ user, authHeader, phoneNumber, newContactName, ne } } + const displayMessage = newContactType === 'contact' + ? 'The new contact is created under a placeholder company, please click "View contact details" to check out' + : 'New Customer Created'; return { contactInfo: { id: contactId, name: newContactName }, returnMessage: { - message: `New contact created.`, + message: displayMessage, messageType: 'success', ttl: 5000 }