• ALL STAR
  • 14981 Points
  • Member since 

  • Chatter
    Feed
  • 468
    Best Answers
  • 0
    Likes Received
  • 9
    Likes Given
  • 0
    Questions
  • 3494
    Replies
Hello,

I have a error below:
I am using ANT for deployment
No default record type specified for recordTypeVisibility: Order. To make the '--master--' record type the default, set visible on all record types to false.
Please help for following VF page:
I want Output like this :
-----------------------------------------------
AccountName1         Contact 1
                                   Contact 2

AccountName2         Contact 1
                                   Contact 2
                                   Contact 3

-------------------------------------------------
Hi,

I am using one trigger which will calculate a date range from my Policy object to Opportunity Object.
I am having a field named Proposal Date in Opportunity and Maturity date in policy object.
So I want to put a logic like if proposal date is 12/3/2019 so the Maturity date should be 19/3/2019 to 30/3/2019.If this range will true then it will okay otherwise it will through a error.
I have written something like 
 if(io1.Proposal_Date__c<po.Maturity_Date__c-7)
but this is not working.Please help.
hi all
i am newbie for vf
below image as my vf pdf report and i can't adjust the column width. Any idea? I tried set to width = % and width = px but still not working Thanks.
User-added image
<apex:datatable width="100%"  style="border-collapse:collapse" value="{!Program__c.Registration__r}" var="Registration" >    
<apex:facet name="header">

  <table width ="100%" style="border-collapse:collapse" >
            <tr>
            <td width="4%" style="text-align:center;border:1px solid #000;font-size: 10px" rowspan="2">A</td>
            <td width="8%" rowspan="2" style = "text-align:center;border:1px solid #000" >B</td>
            <td width="10%" rowspan="2" style="text-align:center;border:1px solid #000">C</td>
            <td width="10%" rowspan="2" style="text-align:center;border:1px solid #000">D</td>   
            <td colspan="12" style="text-align:center;border:1px solid #000">E</td>
            <td width="5%" rowspan="2" style="text-align:right;border:1px solid #000">F</td> 
        </tr>
        <tr>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
            <td width="5%" style="text-align:right;border:1px solid #000">&nbsp;</td>
        </tr>
    </table>

</apex:facet>
    <apex:column width="4%" style="text-align:center;border:1px solid #000;font-size: 10px" >{!rowIndex} <apex:variable var="rowIndex" value="{!rowIndex+1}" /></apex:column>
    <apex:column width="7%" style="text-align:center;border:1px solid #000;font-size: 10px"> <apex:outputText value="{!Registration.Calc_Partial_Refund_Amount__c}"/></apex:column>
    <apex:column width="9%" style="text-align:center;border:1px solid #000;font-size: 10px"><apex:outputText value="{!Registration.Membership_Number__c}"/></apex:column>
    <apex:column width="9%" style="text-align:center;border:1px solid #000;font-size: 10px"><apex:outputText value="{!Registration.Name}"/></apex:column>
    <apex:column style="width:5%;text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>    
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column> 
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>    
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>
    <apex:column width="5%" style="text-align:center;border:1px solid #000"><apex:outputText value=""/></apex:column>   
</apex:datatable>

 
I just got an Error while trying to verify my challenge "Create reports and dashboards" in the Superbadge Trail "Business Administration Specialist" (https://trailhead.salesforce.com/de/content/learn/superbadges/superbadge_business_specialist). The system tells me:

"Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: YYYRAMMG"


I tried the challenge with a all-new Trailhead Playground in which all challenges within the Superbadge worked.

Can someone help me with this?

Thanks!
I'm working on App Customization Specialist Superbadge (2 - Create app fields). I'm Using New Developer Edition(DE) and seeing an unexpected error being displayed.

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: QLTYPNRL


User-added image
Hi all, I am doing the challenge "Create reports and Dashboards" for the business administration specialist superbadge on trailhead but i am unable to complete it due to the following error:
User-added image
May I know how I can fix this?
I'm having trouble creating this trigger I need help


Create an Apex trigger for Account that matches Shipping Address Postal Code with Billing Address Postal Code based on a custom field.
For this challenge, you need to create a trigger that, before insert or update, checks for a checkbox, and if the checkbox field is true, sets the Shipping Postal Code (whose API name is ShippingPostalCode) to be the same as the Billing Postal Code (BillingPostalCode).


- The Apex trigger must be called 'AccountAddressTrigger'.

- The Account object will need a new custom checkbox that should have the Field Label 'Match Billing Address' and Field Name of          'Match_Billing_Address'. The resulting API Name should be 'Match_Billing_Address__c'.

-With 'AccountAddressTrigger' active, if an Account has a Billing Postal Code and 'Match_Billing_Address__c' is true, the record should have the Shipping Postal Code set to match on insert or update.
Challenge Not yet complete... here's what's wrong:
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: OAORIKJS
I have a requirement that , i had created a customobject __name , the save option should enable until the record has entered some value, and  edit button should be in the disable mode.

 in secnario 2: for edit the record, the save button should not be enable untill the record value is entered, if it is not entered , disable mode.. how to work with this in salesforce .. any example will be helpful
 
  • December 19, 2018
  • Like
  • 0
How can i design responsive table as per bootstrap which break the td in new row if small screen size. Table should not take x-scroll.
I am trying to finish the challenge for the Monitor and Manage Salesforce App Usage trail. I have succesfully logged on to Salesforce for Andriod. But the app now doesn't appear in the Connected Apps OAuth Usage list. So I can't block this. There is now way I can pass the challenge now. Please assist.
Hi Team,
I am using SOAP api with C# environment, trying to update the Owner in  "Work_Assignment__c". but am getting the issue "The external foreign key reference does not reference a valid entity: Owner". I can able to get Owner Id, Owner Name by using Owner.Id,Owner.Name field.
Please hel me to resolve this issue and below is my code.

sObject attach = new sObject();
 System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
 attach.type = "Work_Assignment__c";
 attach.Id = "a1O0n000000DLZ4EAO";
attach.Any = new System.Xml.XmlElement[1];
attach.Any[0] = xmlDoc.CreateElement("Owner");
attach.Any[0].InnerXml = "0050n0000017hBGAAY"; // Owner Id
SaveResult[] results;
LimitInfo[] limitInfo;
List<sObject> attchmentlist = new List<sObject>();
attchmentlist.Add(attach);
queryClient.update(header, //sessionheader 
                                  null,   //calloptions1 
                                  null,   //assignmentruleheader 2
                                  null,   //mruheader 3
                                  null,   //allowfieldtruncationheader4 
                                  null,   //disablefeedtrackingheader 5
                                  null,  //streamingenabledheader 6
                                  null,   //allornothingheader 7
                                  null, //DuplicateRule header8
                                  null, //Loacaleoption9
                                  null,   //debuggingheader10 
                                  null,   //packageversionheader11 
                                  null, // emailheader
                                  null,   //emailheader 
                                  attchmentlist.ToArray(), //new attachment or issue or anyother object 
                                 out limitInfo,
                                  out results //result of create operation 
                                  );



 
Hi all,

I want to know if there is a way to query permission set from a particular profile and get the first value from the list of that query.

Thanks in advance.
Hello,

A third party application wants to read data from Salesforce.
So i will expose the salesforce.

They plan to read the data with POST.

How can i give the swagger to them ?
URL and sample JSON

Thank you in advance for suggestions
Test Your Process
Check the Process
If everything works correctly, whenever an account has a change of address, the address change is made for everyone who works for that company. Let’s test that.
Click  to open the App Launcher. Select Contacts.
Click Recently Viewed and select the All Contacts list, then click Tim Barr.
On Tim Barr’s contact record, click Details.
On Tim Barr’s detail page, note the mailing address [1] and account name [2]. 
Click the account name, Grand Hotels & Resorts Ltd. This opens the account for Grand Hotels & Resorts Ltd.
On the Grand Hotels & Resorts Ltd. account record, click Details.
Click Edit.
Change the billing street address and click Save.
Click Related.
Scroll down to Contacts and click Tim Barr. Click Details. On his detail page, notice that his mailing address has been updated.
Hi all,
I want to merge the two date fileds in opportunity module. In have record type for opportunity object in that in want to merge the Shippment date and delivery date as one filed.

Can anyone help me over here.

Thanks in advance,
raju
Hello,
I have a simple Process Builder that is triggered when an opportunity is edited as closed-won: it will create a contract linked to the same account.
  1. The user is on the opportunity record, set it as "Closed Won".
  2. Then, he clicks on the Account Name and sees the related list.
  3. The contract created via Process Builder isn't there. We need either to manually refresh the page, or to click on the Contract related list to see it.
This isn't convenient on an end-user perspective.

Do you have any idea how to make this better?

I noted that if I do in the browser console a $A.get("e.force:refreshView").fire(); it correctly refresh the list and shows the contract.

Thanks in advance for your ideas!
Hello,

I have a error below:
I am using ANT for deployment
No default record type specified for recordTypeVisibility: Order. To make the '--master--' record type the default, set visible on all record types to false.
Hi,
   When I created the Approval process flow with an  email alert I am getting a mail with the approval link, Then if we log out from SFDC account and going back to the link, after clicking the link it is directly taking me to the login page, But my problem is  here I have to approve from mail only, no need of any separate tab or login page. 
Hi all,

Looking for some support. The 3rd steps of the Lightning Experience Reports & Dashboards Specialist superbadge gives me this error :

error Lightning Experience Reports & Dashboards Specialist
Thank you for your support
Raphael
I am getting following errors in below code

Field is not writeable: AccountShare.AccountAccessLevel
 Field is not writeable: AccountShare.CaseAccessLevel
 Field is not writeable: AccountShare.OpportunityAccessLevel
 Field is not writeable: AccountShare.AccountId
 Field is not writeable: AccountShare.UserOrGroupId



if(z==0 && resgroup.get(asset.Reseller__c)!=null){
                    Accountshare ashare = new AccountShare();
                    ashare.AccountAccessLevel='Edit';
                    ashare.CaseAccessLevel='None';
                    ashare.OpportunityAccessLevel='None';
                    ashare.AccountId=asset.AccountId;
                    ashare.userOrGroupId=resgroup.get(asset.Reseller__c);
                    newshares.add(ashare);
                }
I am trying to use the Field Footprint app to determine the usage of fields on a custom object.  I'm getting an error message that the last referenced date is inaccessible?  What do I need to do to resolve that so that I can pull the data I'm needing?  I'm not finding anything in the Field Footprint user guide on this.  Please advise.  Thank you.
Need help in getting code for criteria is like this "Trigger when we create or update a Jpost_object. so that, JPost_Object should lookup with ID of JUser_Object where field name CID__c from JUser_Object is equal to field name UID__c from JPost_Object.
 I have a contract object, on which If any changes  are made and submit the record, the new values doesn't needs to be saved on the Contract object until the changes are approved via approval process. Once, the record is approved by the user!! It's when the changes needs to be updated to the Contract record. How can I achieve this?
Hi Everyone, recently am facing an issue in developer console debug logs.

I have an apex class which deals with wrapper class. I tried to printing the wrapper class values in the apex class eecution. But the am not able to see the complete values of the wrapper class. Half part of the class variables and values truncated in the log.

Similary i tried converting the wrapper into json string and printed, still same issue, the jsons tring truncated in debug log.
Hi All,

in Salesforce Knowledge, i can see that we cannot query with PublishStatus IN ('Draft','Online') together and need to be queried seperately (2 SOQL everytime) for accomodating any logic.

Kindly let me know if you have faced this issue and is there any workaround?

Thanks in advance
 
Hi All,

i have a requirement to send an email notification once the AssignedTo field is changed in knowledge say to a queue.
But the workflow is not triggering even though the field is changed.
Kindly help me in this regard

Thanks in advance.
Hi,
   I have created connect APP with Refersh Toekn Policy = never expires but next day the same token doesn't work.
This token is access_token generated from POSTMAN. My query is:
1. Is the setting in app for access token or refresh token?
2. How to generate refresh token?
I may not be the first to post this question, but has anyone developed code to automatically link an incoming case to a Lead if they match on the email address? We'd want to try matching on contacts/accounts first (we use person accounts), and then to try the Lead object if that fails.
Is there any other way to develop UI pages on Salesforce Classic apart from Visualforce?
We are trying to perform simple integrations, out of the box, with Drift and Hubspot and we keep getting the error:

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

I am not using triggers ... not using apex code ... and I have no idea what this issue means. Could it possibly be that we are trying to update records with a required field that isn't available from HubSpot/Drift???? Any help would be greately appreciated
Hi,

I have around 300 records on a object (which is a child object) having currency ISO code as USD which is wrong in first place because the values have been pulled from another object with right currency code for calculation however the values have been stored in this child object with Currency Code as USD. Now I would like to update these child records with its parent's Currency Iso code. When I tried updating single record, the currency values automatically updated to the converting currency code(say EUR). To make it in simple words, I want to update currency ISO code of a record without the values in currency fields updated automatically! 

Thanks,
Wahid 
I am working on translation of community in different language, I am also changing images i.e. image in English text vs Images in other language say German, While salesforce gives me an option to import/export translated language for text in the form of xml but what should I do for images .The text which I am putting in rich text editer can be exported and again imported into prodution but the xml file does not contain images, Do I need to manual repeat everything (for images) in production which I am doing in sandbox  
How is one supposed to review Logs in the developer console when the log list is constantly scrolling to one end of the list as realtime processes occur? Can you pause the logs from appearing in the list, can you stop it from scrolling, any other ideas?
Robot not working on this unit. Trail "Customize an Org to Support a New Business Unit" and unit is "Manage Users". I completed the challenge in two playgrounds (1 and 2) - but the robot is stuck at one user being incorrect (Fumiko Suzuki - who I created twice in PG 2 and again in PG 1. No luck getting the robot to recognize it. 
Any ideas on how to fix it??
 
I have a custom object called Policies which has a lookup field to Contacts. 

In the Case object, I have created a lookup field to Policies. When a user inputs the Policy number I'd like the Case Contact Lookup field to auto populate with the Contact name related to that policy number. 

Can anyone help me with the code for this? Also, if I introduce a trigger on the Case record, will this have an affect on my email to case function. I had configured a Lookup filter on the Contact lookup field which prevented the email to case from working. So I had to remove it. 
  • October 23, 2016
  • Like
  • 1
Hi All,

We have a requirement where based on the Last Modified User we need to set the Priority value in a custom Field. However, we are doing this in the Before Update Event and hence are not getting the value for the Last Modified By in the Trigger.new. Can you please help us understand in which user's perspective would the Data.com Clean Job run so that we can Identify that the record was updated by a Data.com Clean Job.

What would be the value that UserInfo.getUserId() return in the before update event in this case as the data.com Clean Job runs in the background?

Thanks in advance.
Hello,

I started the "Start Exploring Wave Analytics" Trail and I need to registrate for creation of a specific wave enabled demo.
It seems the form submission is frozen so far.
Could someone help?

Thanks!
Hi frnds,
     I created a community with napili template and created a tab(navigation menu) which contains a custom object.In deskop,We are able to create records of that object but once we login into community from salesforce1 app in mobile,we are unable to create records as "New" button is not visible. Let me know if anyone has some solution to it...