1,500 questions
0
votes
0
answers
48
views
How to invoke API developed using AWS API Gateway which was protected by Amazon Cognito user pool token in Salesforce Apex class
I have created an API using AWS API Gateway, which is protected by an Amazon Cognito User Pool.
I need to obtain a token from Amazon Cognito to invoke or access this API from my Salesforce Apex class. ...
-1
votes
1
answer
579
views
How to Access Nested Wrapper Class in Flow Apex Action?
I'm working on an Apex Invocable Method that returns a wrapper class with nested wrapper objects. However, in Flow, I'm unable to access the inner wrapper fields properly.
Here’s a simplified version ...
-1
votes
1
answer
139
views
Can i disappear the save report button from action menu in interactive report in oracle apex?
I have an interactive gride page. i want to hide SAVE button in action menu to prevent user to save report as default or primary report
i have tried to do that using page item be hidden contain value =...
1
vote
2
answers
908
views
How to get allMetadata retrieval using SF VSCode.. insufficient access rights on entity: GenAiPromptTemplate
Got latest VSCode,latest Sf cli,latest npm ,latest Java 21
Intention is to get all objects (without using Org browser as it will be very time consuming) in manifest.xml to local VS Code project so ...
0
votes
1
answer
204
views
How to disable autocommit in Oracle Apex
I am working on an Oracle Apex form where I have one field and two buttons. I need one button to perform an INSERT and then a COMMIT, while the other button only performs the INSERT without committing ...
0
votes
1
answer
554
views
How to package a Custom Metadata Type in a Salesforce 2GMP (Second Generation Managed Package)?
I am tasked with the creation of a Salesforce 2GMP (Second Generation Managed Package) and I wonder how I can include a Custom Metadata Type in my package.
A simple creation of the Custom Metadata ...
0
votes
1
answer
396
views
Too many SOQL queries: 101
I have a trigger which runs i will share a piece of code which is affecting the functionality
for(Pos_Item__c posItem:[SELECT Id,InProcess_Inventory_Stock__c FROM Pos_Item__c WHERE Id IN :...
0
votes
1
answer
62
views
Trying to unformatted phone number from (999) 777-8888 this to this 9997778888 format
My apex code below extracts phone number from Subject field in the Case object. The thing is that I can't compare with Account Phone field because Phone field is only numbers just like this 9998887777....
0
votes
0
answers
309
views
How do I end an automated process in Oracle's Apex that is not stopping?
I made a mistake when creating an automation in Apex and now it will not stop running. Is their a way to stop the automation from running?
I tried running the below code but I get an error that says &...
0
votes
0
answers
29
views
Sync Files from Salesforce to external drives like Gdirve or Onedrive
I'm developing a managed package and have a requirement to implement functionality that automatically uploads files attached on managed package object at regular intervals on some external drives like ...
-1
votes
1
answer
45
views
Re: Salesforce Apex: Dates
Re: Salesforce Apex: Dates
Keep getting this error message.
Compile error: Variable does not exist: hello
Line: 6
public with sharing class Solution {
private String dateAsString = '2019-01-01 00:00:...
0
votes
0
answers
169
views
Salesforce: Creating Quote PDF doesn't trigger ContentVersion insert trigger?
When creating a Quote PDF i want to react to this event by custom logic in a Salesforce Apex Trigger.
I created a trigger for it:
trigger QUOTEDOCTRIGGER on ContentVersion (after insert) {
for (...
1
vote
1
answer
274
views
Apex testing logic controlled by custom metata type
In my Apex code, I already have an external HTTP callout.
Now, I aim to use a boolean flag in production code to control whether do real HTTP callout or read a static JSON from mdt records (i.e. a ...
0
votes
1
answer
230
views
Apex test class for the for loop is not been covered what needs to be done
public class ItemTypeWrapper {
@AuraEnabled
public Id ItemTypeId ;
@AuraEnabled
public String ItemType;
public ItemTypeWrapper(Id ItemTypeId, String ItemType) {
this....
0
votes
1
answer
1k
views
ORA-29024: Certificate validation failure When Using in apex_web_service.make_rest_request or UTL_HTTP.REQUEST Oracle APEX (Autonomous Database)
I followed all the steps in this forum and let's say that from the autonomous sql developer it worked in these two ways:
ORA-29024: Certificate validation failure When Using UTL_HTTP.REQUEST in ...
0
votes
1
answer
55
views
VisualForce Markup to open salesforce report using its name
I am new to learning apex code and have a scenario where we need to open a salesforce tabular report using the report's name. I have created VF tab, visualforce page and kept the tab in homepage ...
0
votes
1
answer
208
views
Apex Trigger: account rating not updating based on case status count
Based on the case status, update the account rating when the case status is closed only.
If the closed case is 1 then the rating is cold and if the closed case is 2 then the rating is hot.
I have ...
0
votes
0
answers
224
views
APEX class to import data to custom object
Before showing my code that needs debugging, I want to know if it's possible to import data exposed by a Flask API into a custom Salesforce object with an APEX class.
I know it is possible to create a ...
0
votes
0
answers
2k
views
Unknown Error Message: Check for javascript errors
I have 2 questıons .
1)While writing code, this message appears on the developer console screen :'Unknown Error Message: Check for javascript errors. How can I solve this problem?
İn apex job my ...
0
votes
1
answer
2k
views
How do I insert a User which I can use for testing?
I need writing some apex test code, where I want to mock a user which I then via the test has to find.
I seem to have some problems creating one though?
So far I understand I need an account, Contact ...
0
votes
0
answers
399
views
Oracle Apex Automation not executing for multiple applications
I have created 4 automations for one application and these automations work with no issue. They are set to run every minute and they execute.
When I try to add another automation to a different ...
0
votes
2
answers
907
views
Invocable Method Question in Salesforce Apex
I am very new to Apex development, and I am trying to pass a list of strings from records in bulk from a Salesforce flow, but can't get the Apex script to work. If I try invoking from the external ...
0
votes
1
answer
2k
views
How to find apex class included in scheduled apex job
how to find the apex class in this scheduled apex record.its not showing the apex class , then I try this in apex jobs section but it's also not showing this job
Please give me solution for that . ...
0
votes
1
answer
1k
views
Salesforce Apex If-Statement with OR-Logic
I like to write and If-Statement in Apex Code with the following logic:
The Variable myVariableString can be blank, empty, ValueA, ValueB, ValueC or, and here I asume, because the Variable gets its ...
0
votes
1
answer
131
views
How to authentication with Xero and salesforce without repeating authentication steps using apex?
Could you please help how to authentication with Xero and Salesforce using apex without repeat steps of authentication process on Salesforce side?
As of now I used refresh token but it's expire after ...
0
votes
1
answer
366
views
How to include/merge two visual force pages and have second page styling persist?
I am currently trying to create some pdfs for a Meta Human salesforce app and cannot figure out how to merge two visual force pages into one correctly. I am using the apex:include tag to merge the two ...
0
votes
1
answer
697
views
how to split one row into 2 lines, interactive grid oracle apex?
There are a lot of columns to edit in this interactive grid, i want to split the row into 2 lines
interactive grid
like this
i do not know if possible or not
is there a way to do it?
I did a lot of ...
0
votes
1
answer
820
views
Copy a row of data in interactive report in oracle apex
I have an interactive report in oracle apex, which has details of a bug like
bug number
bug description
developer
reviewer
tdd
dtc
mr
etc
I have a copy button for each row with the following code
<...
0
votes
1
answer
65
views
vf pagination page can't offset the data
https://github.com/RuRu1229/paging-page
this is my page&apexCode
I want to do when I press the button,I can dispaly the (next/previous) five value In the screen.
Now I have six value,but when I ...
0
votes
1
answer
516
views
Use a page item in share component APEX ORACLE
I computed a value using SQL and assigned it to a page item (P1_item) in page 1. I used this item in SQL query of a list of value in shared component (select col1 from table where col2=:P1_item). Then ...
1
vote
1
answer
154
views
how can i update first then send the email with one button?
for example, in the model dialog, when i changed the date and click the send email button.
first, i need to update the informations then run the send email process,
to be clear, i want to give you ...
0
votes
1
answer
542
views
In Apex Oracle, is it possible to export a table so that someone else can import and use it for queries?
Doing a group project with a few people and we are make the tables separately, is there a way to export a table so that someone else can import it and run queries with it?
someone tried sending me in ...
-3
votes
1
answer
2k
views
Doesn't match '[a-z][a-zA-Z0-9]*' (rule: Code Style-MethodNamingConventions)
I dont understand whats the issue here is. Please still gives the error.
public static void AmountHandlertest(){
//CODE;
}
I want to run that method but shows an error saying Doesn't match '[a-...
0
votes
1
answer
80
views
Cron Expression 1010
i need cron expression for to schedule job for every 2min.
I tried
String Cron = '0 0/2 * 1/1 * ? *';
but throwing exception like the sec and min cron expression should be in integer only.
1
vote
1
answer
1k
views
oracle apex using dynamic action on a date field
I am a fresher in oracle apex, need some inputs.
There is a form to enter header information. In that there is a date field :P100_ENTERED_DATE, if this field value is less than current date then we ...
0
votes
1
answer
222
views
interactive grid select list without mentioning parent column
I have a column in Interactive grid as select list and the list should refresh based on from and to date. however there is a scenario where I dont want the select list to change when from and to date ...
0
votes
1
answer
1k
views
How to perform actions based on user logins in Salesforce without a Login Flow?
I need to perform certain actions or notifications whenever a user logs into Salesforce. However, it seems that creating a trigger directly on the LoginEvent object is not possible in Salesforce.
I ...
0
votes
2
answers
913
views
Why is the 'Public' keyword not being recognized"?
I am new to Salesforce Development/Apex and am running practice exercises.
When I run this code thru the 'Anonymous Apex' window, it throws an error reading:
"Unexpected token 'Public'. "
...
0
votes
1
answer
462
views
Call asynchronous method with mock callout class
I am currently writing a mock callout class to test an API call that is being pushed into a production environment. The problem that I am having is the class that has the API call in it is an ...
0
votes
0
answers
877
views
How to export PLSQL Dynamic Content Table to Excel File?
I have created an HTML table region using PLSQL Dynamic Content, and I want to create a button that exports or converts the region content (HTML TABLE) to an Excel file. Is that possible or not? Can ...
-1
votes
1
answer
525
views
How to write to an existing Excel file in Oracle Apex 22?
I was trying to write in Excel file that is already located on the server. I'm using Oracle Apex 22. Is it avalibale?
I was trying to write in excel file. but I couldn't find the way I have been ...
0
votes
1
answer
361
views
Apex code failing validation on inbound change set
I have three classes that I am trying to push from the sandbox to production.
Class 1 the main class which contains an API call to send data to local servers, class 2 is a class that is called from a ...
0
votes
1
answer
223
views
How to handle Special Characters in Upload wizard in Oracle APEX
How to handle Special Characters in Upload wizard in Oracle APEX from CSV file:
é
è
à
ù
ç
ñ
ö
ë
í
á
ó
Also, I want to do Transformation of these special char to Alpha chars.
When I upload Excel ...
0
votes
1
answer
547
views
I want to write SOQL query listing all FieldPermissions but without formula/calculated fields
I need to write a SOQL query listing all FieldPermissions without the formula/calculated fields
The query I wrote is:
SELECT Id, Field, SObjectType, PermissionsRead, PermissionsEdit
FROM ...
0
votes
1
answer
132
views
solve err in before insert trigger on pl/sql
I create table b
create table b(
id number(3),
name varchar2(5),
birth_day date
);
& I create trigger p
create or replace trigger p
before insert on b
for each row
declare
g number;
begin
...
0
votes
1
answer
834
views
APEX Salesforce Random days have business hours less than 24 hours
Business Hour Setup IMGI'm trying to calculate business hours between two days. However for some reason random days are showing up with less than 24 hours or less than 86400000 seconds in between on ...
0
votes
0
answers
172
views
why am i not getting the data of record and just lable in visualforce page?
attched is my output
enter image description here
Bolow is my visulforce Page and apex page
i am expecting output as a single record in 2 column and has next and previous button to next and previous ...
1
vote
2
answers
7k
views
How To Upload A Large File (>6MB) To SalesForce Through A Lightning Component Using Apex Aura Methods
I am aiming to take a file a user attaches through an Lightning Component and create a document object containing the data.
So far I have overcome the request size limits by chunking the data being ...
0
votes
1
answer
637
views
Setting a value in Controller from Visualforce Page is taking too long
I'm using Visualforce Page to display some selection fields, and based on the selections I'm updating my list.
<apex:form>
<div class="map-controls">
<div class=&...
0
votes
1
answer
269
views
Receiving sObject error: Error message does not fire and receiving a System error instead
Created a Contact Trigger and a ContactTriggerHandler class to produce an error if the Contact is related to a relationship that contains 'Pricing Letters' and any item in the Address or Email Address ...