+ Start a Discussion
Todd DeRosa 4Todd DeRosa 4 
I tested this with a fresh developer instance.  Install financial service cloud, then create a person account...all is good.  Then go to package manager and create a namespace, try to create, or update a person account (or any account) and you get: FinServ.AccountTrigger: execution of BeforeInsert caused by: FinServ.MoiExceptionWrapper.ValidationException: Your account record type is missing, a duplicate, or invalid. Ask your admin to check the individual record type configurations in Setup. (FinServ)
Best Answer chosen by Todd DeRosa 4
Michael J SturgisMichael J Sturgis
We are having the same issue.  Prior to adding the Namespace, creating (or editing) an Account or Contact Record in Financial Service Cloud was not an issue. As soon as we added the Namespace, we have been unable to Create or Edit Account or Contact Records.  We've created a Package for GA and are on hold penidng resolution of this issue.  We spun up another Financial Service Cloud Dev Org and ran into the same issue.
SFDC coderSFDC coder 
Hi all,

While exploring the salesforce features i came across supoort process
  1. Support processes are used to add or remove the status values of cases
  2. After a support process has been created its assigned to a record type
Now my confusion  is ,why  are we  using support processes to add/remove the picklist values? as It can also be achieved when creating record types.
Record types allow us to customize the picklist values then why wud we use this solution process feature?

Best Answer chosen by SFDC coder
ShashForceShashForce
Hi,

Support Process is only for the "Status" picklist, as you might know. The picklist values available in the status of a case record type determine a support process. It is only a business relevant feature as the status field is the most process-specific field on a case. The status field cannot be customized on a record type, it can only be customized in a support process.

Thanks,
Shashank
James WróbelJames Wróbel 
Hi, I am currently setting up Webchat to use on an external website. I have run through the chat deployment tasks and completed them as required. I have obtained the code snippet(s) to add to a webpage in order to show the chat window but nothing is displayed. I have checked the page source, everything looks as it should be. I have inspected the elements and can see the deployment id etc. The external website has been added to the CORS list. I'm not sure if I have missed a step. Thanks.
Best Answer chosen by James Wróbel
SwethaSwetha (Salesforce Developers) 
HI James,
Are you saying chat button is not visible at all? Have you tested that the chat functionality works on your internal salesforce org?

Incase it is working within Salesforce via a Visualforce Page, Community, or Basic HTML Doc((Only including Chat Button and Deployment Code or standard Embedded Web Service code snippet that doesn't have custom components configured) we can narrow down that its an issue with external website and not salesforce's.

If so, recommend placing the Embedded Web Service code in an iframe to isolate the component from framework libraries or other Javascript/CSS that may be causing problem

See doc

If this information helps, please mark the answer as best. Thank you
SalesRedSalesRed 

Hello,

 

I was wondering if there is any equivalent string function that can used similar to the charAt function which exists in java?

I know no such method is listed at http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_string.htm

 

I know it's possible to look through the string and to get each character using the substring function in such a loop but it would be much better if a function existed similar to charAt.

 

if anyone knows of a better way of doing this you can let me know.

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
Platy ITPlaty IT

You can use substring the same way you would charAt, it doesn't have to be in a loop.  If you know exactly which character(s) you're trying to grab, substring just requires 2 inputs to get it, the start and end position.  So...

 

charAt(4) is the same as substring(3,4)

SandrineSandrine 
Hello,

I want to add a text inside like below

User-added image

caseObj.Descripion= Label.Descrption;

Description label is like
"Date:\nTime:\nname:"

When i try to add this label, it always adds the "Date:\nTime:\nname:"
the new line is never added.

How can i achieve it ?
Best Answer chosen by Sandrine
Sure@DreamSure@Dream
Hi Sandrine

Update the label as "Date:<br/>Time:<br/>name:"

Please mark this as the solution, if it solves your problem.

Thanks
GlennAtAppirioGlennAtAppirio 
These boards have numerous threads about sending emails from s-controls.  Having just wrestled with a variant of the problem for a customer, I thought I'd post the solution I used, which (now!) seems fairly straightforward (although it took some bobbing & weaving to get here).

Problem Statement
:  With one click, allow a user to create an object, then send a template-based email to a Contact associated with that object.  The email template must populate with correct values from the just-created object.

Solution:  Save the following code as an s-control snippet.  Then include the snippet, and call the function from anywhere in your main s-control.  (I won't cover the part about creating a new object here - let's assume you can do that, and then retrieve the object ID of your newly created object.)

function sendEmail(templateId, contactIdForToAddress, relatedObjectId) {

  var url = "https://na3.salesforce.com/email/author/emailauthor.jsp?";
  url += "p2_lkid=" + contactIdForToAddress;
  url += "&p3_lkid=" + relatedObjectId;
  url += "&template_id=" + templateId;
  url += "&new_template=1";
  url += "&retURL=%2F" + relatedObjectId;
  url += "&nosave=0";   // not sure what this parameter does, or if it's really needed
  url += "&save=1";   // send it now - don't just bring us to the "send email" page

  window.open(url);
}


The net effect here is that a new window (actually, a tab in Firefox) will open up, pointing at the newly created object.  If it has an Activity History related list, the just-sent email will appear there. 

This all worked rather elegantly for me.  The actual use case is a Google Map showing the location of various Communities (a custom object).  The user can select several Communities (from a sidebar with a list of accounts & checkboxes), then click a single button to create "Referrals" (a custom object) to each selected Community, and email each Community's primary contact with their Referral data.  After the click, the user waits a moment, and then multiple tabs open up, one for each newly-created Referral.

I'm happy to discuss further if anyone is interested or needs help doing something similar - glenn@appirio.com.


Message Edited by GlennAtAppirio on 02-18-2007 01:05 PM

Message Edited by GlennAtAppirio on 02-18-2007 01:05 PM

Best Answer chosen by Admin (Salesforce Developers) 
wickwick
I have a custom button to create a new custom object.
When the user saves the new custom object, I want a new email to be composed (but not sent yet) using a template, and related to the custom object that was just saved. I also want to pull in the contact field from that custom object, as well as up to 5 email addresses from 5 email address fields in the custom object.
It seems that I need to add some procedure to the "save url" part of my original custom button URL, but when I do that it doesn't use the template or pull in any custom fields. Could I run an S-control from the "Save URL" parameter of my URL to do this? If so, how do I run an S-control from the SaveURL part of a URL, and what would my S-Control need to contain.
I appreciate any advice, code, or links to other posts to help me tackle this.
Thank you.
VorixVorix 
The following formula will calculate the number of working days (inclusive) between 2 dates. A working day is defined as Monday to Friday. Even if the start or end dates are a weekend, these are accommodated.

IF(AND((5 - (CASE(MOD( Start_Date__c - DATE(1900, 1, 6), 7), 0, 0, 1, 5, 2, 5, 3, 4, 4, 3, 5, 2, 6, 1, 0)) < (CASE(MOD(  End_Date__c  - DATE(1900, 1, 6), 7), 0, 0, 1, 0, 2, 1, 3, 2, 4, 3, 5, 4, 6, 5, 0)) ),
((( End_Date__c  -   Start_Date__c ) + 1) < 7)),
((CASE(MOD(  End_Date__c  - DATE(1900, 1, 6), 7), 0, 0, 1, 0, 2, 1, 3, 2, 4, 3, 5, 4, 6, 5, 0)) - (5 - (CASE(MOD(  Start_Date__c  - DATE(1900, 1, 6), 7), 0, 0, 1, 5, 2, 5, 3, 4, 4, 3, 5, 2, 6, 1, 0)))),
(((FLOOR((( End_Date__c  -  Start_Date__c ) - (CASE(MOD(  Start_Date__c  - DATE(1900, 1, 6), 7), 0, 0, 1, 6, 2, 5, 3, 4, 4, 3, 5, 2, 6, 1, 0))) / 7)) * 5) +
(CASE(MOD(  Start_Date__c  - DATE(1900, 1, 6), 7), 0, 0, 1, 5, 2, 5, 3, 4, 4, 3, 5, 2, 6, 1, 0)) +
(CASE(MOD(  End_Date__c  - DATE(1900, 1, 6), 7), 0, 0, 1, 0, 2, 1, 3, 2, 4, 3, 5, 4, 6, 5, 0))))


The Start Date and End Date fields are custom in the above example and can be replaced as required. If use of a DateTime field is required then the DATEVALUE function will be required.

I also recommend a simple field validation rule is added to check that the End Date is after the Start Date.
Best Answer chosen by Admin (Salesforce Developers) 
teacup13teacup13

This formula seems to work when calculating bt 2 different days. What about taking into account for same day and returns result shoud be a "0"? My result shows a "5" when I entered 9/10/09 and 9/10/09 for both start and end dates. Is there one formula that can include this possiblity?

 

TY!!

Teacup13

hemanth tanguturi 5hemanth tanguturi 5 
What is meant by sandbox refresh time interval?
does it mean the time taken to complete the refresh from prod to test?
Best Answer chosen by hemanth tanguturi 5
Srinivas SSrinivas S
Hi Hemanth,

You will see the following types of sandboxes in production -
  1. Developer
  2. Developer Pro
  3. Partial Data
  4. Full Copy
Once you refresh the Developer Sandbox then to refresh it one more time you have to wait for 1 Day.
Once you refresh the Developer Pro Sandbox then to refresh it one more time you have to wait for 1 Day.
Once you refresh the Partial Data Sandbox then to refresh it one more time you have to wait for 5 Days.
Once you refresh the Full Copy Sandbox then to refresh it one more time you have to wait for 29 Days.

Note: It is not the time taken to copy the contents from production to sandbox which will vary based on your production data and configuration.

------------
Thanks,
Srinivas
- Please mark as solution if your problem is resolved.
Dannilo FrancoDannilo Franco 
I'm getting the same error even though I'm using the code provided by other users here. The new field is also created.
 
trigger AccountAddressTrigger on Account (before insert, before update) {
    for(Account a : Trigger.new){
        If (a.Match_Billing_Address__c == true) {
            a.ShippingPostalCode = a.BillingPostalCode;
        }   
    }
}

Is there anything wrong with it? 

Thanks in advance.
Best Answer chosen by Dannilo Franco
Dannilo FrancoDannilo Franco
Hey Sumit,

I just fixed the problem! For some reason the Trigger was inactive. I actived it and checked the Challenged and worked properly!

Best,

Dannilo
nama bekannama bekan 
I am coding using Salesforce Apex and DocuSign API. Here a part of my code :
 
DocuSignAPI.Tab tab100 = new DocuSignAPI.Tab() ;                        
tab100.Type_x = 'Custom' ;     
tab100.RecipientID = 1 ;                           
tab100.DocumentID = 1 ;                           
tab100.PageNumber = 1 ;                           
tab100.XPosition = 40 ;                           
tab100.YPosition = 40 ;
Unfortunately, I try to use other field name like "Font, FontSize" but it is not recognized : I got this message "Variable does not exist : Font".

Thanks
 
Best Answer chosen by nama bekan
Tarun DasTarun Das
Try to create APEX classes, have you used DS WSDL - docusign.net/API/3.0/Schema/dsapi.wsdl?, please check Using DocuSign WSDL (https://developers.docusign.com/docs/esign-soap-api/esign101/wsdls/) in SF 

Please mark it as Solution if it works for you

Regards,
Tarun