• nabil711
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 6
    Replies

Hi

 

I'm working with a web-to-lead

 

How can i link 3 contacts with 1 lead ?

 

Thks

Hi

 

I get this error message

 

caused by: System.DmlException: Update failed. First exception on row 0 with id 001f0000001uqh7AAA; first error: INVALID_FIELD_FOR_INSERT_UPDATE, Account: bad field names on insert/update call: Name: [Name]

 

Erreur dans l'expression '{!enreg}' du composant <apex:page> dans page vfp_edit_account

 

public PageReference enreg_v2()
{
  update account; 
  PageReference pageResult = new PageReference('/apex/VFP_Moncompte_V2');  
  pageResult.setRedirect(true);
  return pageResult;
}

 

Thanks

Hi

 

I want to display a link : '/apex/VFP_MyAccount?userName={!User.Username }&accountId='+Id

 

as a custom tab : MyAccount   in my customer portal but i get problems with parameters 

 

Thanks

Hi

 

I have create a custom visual force page : VFP_Login 

 

This is the the login URL for my customer portal

 

Login URLhttps://cs16.salesforce.com/secur/login_portal.jsp?orgId=YYYYYYY&portalId=XXXXXXX

 

How to change it to my VFP_Login page??

 

thanks

Hi

 

I have a related list called "Membre de famille" in account and i have to display it in a visual force page

 

thanks

Hello

 

I get this error message when i tried to update an account in customer portal:

 

Update failed. First exception on row 0 with id 001f0000001uqh7AAA; first error: INVALID_FIELD_FOR_INSERT_UPDATE, Account: bad field names on insert/update call: Name: [Name]

Erreur dans l'expression '{!enreg}' du composant <apex:page> dans page test

// Visual Force Page Test:

<apex:page controller="MyAccountCon">

<apex:form >
<apex:pageBlock title="Person Account Edit" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton action="{!enreg}" value="Save Test"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Personal Data" columns="2">
<!-- Personal Data -->
<apex:inputField value="{!account[0].PersonalReference__c}"/>
<apex:inputField value="{!account[0].PersonBirthdate}"/>
<apex:inputField value="{!account[0].PersonTitle}"/>
<apex:inputField value="{!account[0].Nationality__c}"/>
<apex:outputText value="{!account[0].Name}"/>
<apex:inputField value="{!account[0].Language__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Data" columns="2">
<!-- Contact Data -->
<apex:inputField value="{!account[0].Country__c}"/>
<apex:inputField value="{!account[0].Phone}"/>
<apex:inputField value="{!account[0].PersonHomePhone}"/>
<apex:inputField value="{!account[0].Fax}"/>
<apex:inputField value="{!account[0].PersonMobilePhone}"/>
<apex:inputField value="{!account[0].PersonEmail}"/>
<apex:inputField value="{!account[0].Website}"/>
</apex:pageBlockSection>

</apex:pageBlock>
</apex:form>

</apex:page>

 

// Controller
public class MyAccountCon 
{           

    public List<Account> account=new List<Account>(); 
  
    public List<Account> getaccount()
    {
      //get the user Name from URL
      string usern=apexpages.currentpage().getparameters().get('userName');
      
      //get the account Id
      string idacc=[select accountId from User where username=:usern][0].accountId;
      
      //get the account  
      account = [select PersonalReference__c,Name,PersonBirthdate,Owner.name,Nationality__c,PersonEmail,
                 Language__c,PersonTitle,Country__c,Phone,PersonHomePhone,Fax,PersonMobilePhone,Website
                 from account
                 where id=:idacc];             
      return account;
    }
   public PageReference enreg() 
   {
     update account;

     PageReference pageResult = new PageReference('apex/Moncompte?userName='+apexpages.currentpage().getparameters().get('userName')+'&accountId='+apexpages.currentpage().getparameters().get('accountId')); 
     pageResult.setRedirect(true);
     return pageResult;
   }
    
}
Thanks for Help

Hi

 

I have a custom objects and i want to display it in my visual force page

 

thanks

Hi

 

How to create a visual force pages that show my account in customer portal

 

Thanks

Hi

 

I need for a customer profile to edit tab setting: account and contact

 

so a customer can view his account and contact

 

I read about  Delegated Portal User Administrator but i don't find this option

 

Thanks 

the customer account can not be saved because it references a currency that is inactive salesforce

 

Zuora.zApi zApiInstance = new Zuora.zApi();
zApiInstance.setEndpoint('https://www.zuora.com/apps/services/a/27.0');
zApiInstance.zlogin(xxxxx', 'xxxxxx');

Zuora.zObject acc = new Zuora.zObject('Account');

acc.setValue('Name', nomClient);
acc.setValue('Currency', 'USD');
acc.setValue('BillCycleDay', 1);
acc.setValue('PaymentTerm', 'Net 30');
acc.setValue('Batch', 'Batch1');
acc.setValue('Status', 'Draft');

List<Zuora.zObject> objs = new List<Zuora.zObject> {acc};

List<Zuora.zApi.SaveResult> results = zApiInstance.zcreate(objs);

for (Zuora.zApi.SaveResult result : results)
{
   if (result.success)
   {
     //get the newly created id
     test = result.Id;
   }
else {
//failure
Zuora.zObject[] errors = result.errors;
for (Zuora.zObject error : errors) {
String errorCode = (String)error.getValue('Code');
String message = (String)error.getValue('Message');
//more code here...
test = errorCode+' '+message;
   }
}

Hi

 

I try to creat a customer account for zuora from salesforce where is the problem?

 

Zuora.zApi zApiInstance = new Zuora.zApi();
zApiInstance.setEndpoint('https://www.zuora.com/apps/services/a/27.0');
zApiInstance.zlogin('mylogin', 'mypassword');

Zuora.zObject acc = new Zuora.zObject('Account');

acc.setValue('Name', 'nomClient');
acc.setValue('Currency', 'USD');
acc.setValue('BillCycleDay', 1);
acc.setValue('PaymentTerm', 'Net 30');
acc.setValue('Batch', 'Batch1');
acc.setValue('Status', 'Draft');

List<Zuora.zObject> objs = new List<Zuora.zObject> {acc};

List<Zuora.zApi.SaveResult> results = zApiInstance.zcreate(objs);

for (Zuora.zApi.SaveResult result : results)
{
   if (result.Success)
   {
     //get the newly created id
     test = result.Id;
   }
}

 

Thanks

Hi

 

when i open my text file with the url."..servlet/servlet.FileDownload?file=015M00000005K26IAE "

 

 i can't display special caracter like é à ....

 

Thanks

Hi

 

in QuoteLineItem, I have a field Produit

name : Product2 & Type : lookup(Produit)

 

I need a SOQL query to get information (Family & Name) from Object Product2  

 

Select Product2.Name From QuoteLineItem

 

doesn't work

 

I tried a lot of queries same problems

 

Thanks

 

Hi

 

I have Devis where i have a list of product

 

for every Devis i get a list of product

 

I Create a custom buttom that get Devis Data but i can't get the list of product to sent it to Apex code

 

Thanks for help

Hi

 

I need to create a custom button that generate a flat file .txt

 

is there any method to create a file on apex code?

 

Thanks for your help

Hi

 

I want to display a link : '/apex/VFP_MyAccount?userName={!User.Username }&accountId='+Id

 

as a custom tab : MyAccount   in my customer portal but i get problems with parameters 

 

Thanks

Hi

 

I need for a customer profile to edit tab setting: account and contact

 

so a customer can view his account and contact

 

I read about  Delegated Portal User Administrator but i don't find this option

 

Thanks 

Hi

 

in QuoteLineItem, I have a field Produit

name : Product2 & Type : lookup(Produit)

 

I need a SOQL query to get information (Family & Name) from Object Product2  

 

Select Product2.Name From QuoteLineItem

 

doesn't work

 

I tried a lot of queries same problems

 

Thanks

 

Hi

 

I need to create a custom button that generate a flat file .txt

 

is there any method to create a file on apex code?

 

Thanks for your help