• Krisztian
  • NEWBIE
  • 40 Points
  • Member since 2014
  • Developer

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 12
    Replies
Hello, I have a Visualforce page rendered as pdf. The page contains multi line table. I set page-break-inside: avoid; to tr tags already. The borders are dulicated on the botom and the top of the pages on page breaks. With 90% zoom level I see dots, with 100% I see the horizontal line. What is the sollution the brak tables between pages? Thanks is advance, Chris
User-added imageUser-added image
What does "The account owner's role determines the level of access to child records." means?

* The ACCOUNT and the CASE is PRIVATE. 

* USER05 is a Sales Rep and owned the "ACME" Account Record. 
    * The Sales Rep has Sales Rep Role
        * Users in this role cannot access cases that they do not own that are associated with accounts that they do own
    * Based on the Sales Rep profile has _CREATE_, _READ_, _EDIT_ permission for Account
    * The Sales has access to the ACME account by Enterprise Territory Manager 2.0.
        * Users in this territory can _READ_ and _EDIT_ accounts assigned to this territory.
        * Users in this territory can _READ_ and _EDIT_ all cases associated with accounts in the territory, regardless of who owns the cases.

* USER15 is a Service Engineer User who created and owned the Case001 Record that related to ACME Account.
    * The Service Engineer has Service Engineer Role
        * Users in this role cannot access cases that they do not own that are associated with accounts that they do own
    * Based on the Sales Rep profile has _READ_ permission for Account
    * The Sales has access to the ACME account by Enterprise Territory Manager 2.0.
    
* USER26 is a Lead Support User and has access to the ACME Account based on a sharing rule
    * The Lead Support User has role, but in other branch (independent from Sales Rep Role)
    * The Lead Support User has _READ_ permission on the Case.
    * The Lead Support User has access to the ACME Account based on a sharing rule
    * The Lead Support User access to the Case001 record by implicit sharing    

* USER30 is a Support User and has access to the ACME Account based on a sharing rule
    * The Lead Support User has role, below the Lead Support.
    * The Support User has _READ_, _EDIT_ permission on the Case.
    * The Support User has access to the ACME Account based on a sharing rule
    * The Support User access to the Case001 record by implicit sharing

Fact: USER26 can _READ_ the Case001 record. 
Fact: USER30 can _EDIT_ the Case001 record. 
    
Note: The Profiles can restrict access level. (except read all and modify all, but the profiles do no not have read all and modify all)
Note: https://help.salesforce.com/articleView?id=sharing_across_objects.htm&type=5 -> "The account owner's role determines the level of access to child records."

The account owner's role is "cannot access cases". Why can USER30 _EDIT_ Case001?
Hi,
I am receiving an error in a Trailhead challange. Could somebody help me, what is the cause? (Create a Satisfaction Survey > Add a Screen for Thanking the Customer). I tried in Trailhead playground and in Developer Edition too.

Step 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: IONAKFIW

Thanks in advance!

The organization owner received a developer script exception via email from the production. Please note that I have not access to the production, the owner deployed the change set.

There is a /JSON/ REST integration with an Apex class to receive POST callouts via a Site Guest User. The method throws an Exception (Upsert failed, DUPLICATE_VALUE) and this is correct. A value duplicated in a unique field.

The problem is something else: The full method body is in a try-catch. The line (line 82) that causes the exception is in the try block. Why received the owner the developer script exception email? The salesforce send developer script exception email from handled exception?

Subject: Developer script exception from Természetesen Alapítvány : AccountForContactCreation : AccountForContactCreation: execution of BeforeInsert caused by: System.DmlException: Upsert failed. First exception on row 102; first error: DUPLICATE_VALUE, Duplicate external id specified: XXXXXXXXXXXXXXX: [A_NameExternalId__c] Trigger.AccountForContactCreation: line 82, column 1
To: "info@XXXXXXXXXX.com" <info@XXXXXXXXXX.com>


Apex script unhandled trigger exception by user/organization: 0050O00000XXXX/00D2000000XXXXX

AccountForContactCreation: execution of BeforeInsert

caused by: System.DmlException: Upsert failed. First exception on row 102; first error: DUPLICATE_VALUE, Duplicate external id specified: XXXXXXXXXXXXXXX: [A_NameExternalId__c]

Trigger.AccountForContactCreation: line 82, column 1

Thanks in advance,
Krisztian

Hi,
How can I handling outbound emails, that the users send standard email forms?
I would like to ask you, the below SOQL query why is non-selective query?

SELECT Id, Name, E_mail__c, E_mail_2__c, Phone, mobilephone__c, Telefhone_3__c, Description, OwnerId, Owner.UserRole.Name
FROM Account
WHERE EXT_ID__c = '1' AND (E_mail__c = :var1 OR E_mail_2__c = :var1)

The total count of Accounts is 101000.
The count of Accounts where ext_id__c = '1' is 99000.
The count of Accounts where ext_id__c = '2' is 2000.
The EXT_ID__c is external id, not requied and not unique.
The var1 is not nullable.

If I filter ext_id__c to '1', it throws QueryException, but if '2' not throw.

Apex trigger Web2Lead caused an unexpected exception, contact your administrator: Web2Lead: execution of BeforeInsert caused by: System.QueryException: Non-selective query against large object type (more than 100000 rows). Consider an indexed filter or contact salesforce.com about custom indexing. Even if a field is indexed a filter might still not be selective when: 1. The filter value includes null (for instance binding with a list that contains null) 2. Data skew exists whereby the number of matching rows is very large (for instance, filtering for a particular foreign key value that occurs many times): Class.Web2LeadHandler.RealtedAccount: line 190, column 1

Hi,
I process XML files. The XML has special structura so I create a mapper. Example: Account.ID -> Account.ExternalId__c
I want to set the account's field via string parameters. How can I create this procedure?

void SetByParams(Account acc, String field, String value){
   //abstract: acc.'field' = value;
}

Please help me to wirite a class that can send a https request.

I create successful a https request based on: 
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_httprequest.htm

but I do not have any idea to create a https request.

The organization owner received a developer script exception via email from the production. Please note that I have not access to the production, the owner deployed the change set.

There is a /JSON/ REST integration with an Apex class to receive POST callouts via a Site Guest User. The method throws an Exception (Upsert failed, DUPLICATE_VALUE) and this is correct. A value duplicated in a unique field.

The problem is something else: The full method body is in a try-catch. The line (line 82) that causes the exception is in the try block. Why received the owner the developer script exception email? The salesforce send developer script exception email from handled exception?

Subject: Developer script exception from Természetesen Alapítvány : AccountForContactCreation : AccountForContactCreation: execution of BeforeInsert caused by: System.DmlException: Upsert failed. First exception on row 102; first error: DUPLICATE_VALUE, Duplicate external id specified: XXXXXXXXXXXXXXX: [A_NameExternalId__c] Trigger.AccountForContactCreation: line 82, column 1
To: "info@XXXXXXXXXX.com" <info@XXXXXXXXXX.com>


Apex script unhandled trigger exception by user/organization: 0050O00000XXXX/00D2000000XXXXX

AccountForContactCreation: execution of BeforeInsert

caused by: System.DmlException: Upsert failed. First exception on row 102; first error: DUPLICATE_VALUE, Duplicate external id specified: XXXXXXXXXXXXXXX: [A_NameExternalId__c]

Trigger.AccountForContactCreation: line 82, column 1

Thanks in advance,
Krisztian

Hi,
I am receiving an error in a Trailhead challange. Could somebody help me, what is the cause? (Create a Satisfaction Survey > Add a Screen for Thanking the Customer). I tried in Trailhead playground and in Developer Edition too.

Step 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: IONAKFIW

Thanks in advance!

The organization owner received a developer script exception via email from the production. Please note that I have not access to the production, the owner deployed the change set.

There is a /JSON/ REST integration with an Apex class to receive POST callouts via a Site Guest User. The method throws an Exception (Upsert failed, DUPLICATE_VALUE) and this is correct. A value duplicated in a unique field.

The problem is something else: The full method body is in a try-catch. The line (line 82) that causes the exception is in the try block. Why received the owner the developer script exception email? The salesforce send developer script exception email from handled exception?

Subject: Developer script exception from Természetesen Alapítvány : AccountForContactCreation : AccountForContactCreation: execution of BeforeInsert caused by: System.DmlException: Upsert failed. First exception on row 102; first error: DUPLICATE_VALUE, Duplicate external id specified: XXXXXXXXXXXXXXX: [A_NameExternalId__c] Trigger.AccountForContactCreation: line 82, column 1
To: "info@XXXXXXXXXX.com" <info@XXXXXXXXXX.com>


Apex script unhandled trigger exception by user/organization: 0050O00000XXXX/00D2000000XXXXX

AccountForContactCreation: execution of BeforeInsert

caused by: System.DmlException: Upsert failed. First exception on row 102; first error: DUPLICATE_VALUE, Duplicate external id specified: XXXXXXXXXXXXXXX: [A_NameExternalId__c]

Trigger.AccountForContactCreation: line 82, column 1

Thanks in advance,
Krisztian

Hi,
How can I handling outbound emails, that the users send standard email forms?

Hi,
I process XML files. The XML has special structura so I create a mapper. Example: Account.ID -> Account.ExternalId__c
I want to set the account's field via string parameters. How can I create this procedure?

void SetByParams(Account acc, String field, String value){
   //abstract: acc.'field' = value;
}

Please help me to wirite a class that can send a https request.

I create successful a https request based on: 
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_httprequest.htm

but I do not have any idea to create a https request.