Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -171,8 +171,9 @@ def generate_dpr(files):
|
|
171 |
try:
|
172 |
# Create Daily_Progress_Reports__c record
|
173 |
report_description = "; ".join(captions)[:255] # Concatenate captions, limit to 255 chars
|
|
|
174 |
dpr_record = sf.Daily_Progress_Reports__c.create({
|
175 |
-
'
|
176 |
})
|
177 |
dpr_record_id = dpr_record['id']
|
178 |
salesforce_result += f"Created Daily_Progress_Reports__c record with ID: {dpr_record_id}\n"
|
|
|
171 |
try:
|
172 |
# Create Daily_Progress_Reports__c record
|
173 |
report_description = "; ".join(captions)[:255] # Concatenate captions, limit to 255 chars
|
174 |
+
# The fix: Assign the report_description to 'Detected_Activities__c' instead of 'Report_Description__c'
|
175 |
dpr_record = sf.Daily_Progress_Reports__c.create({
|
176 |
+
'Detected_Activities__c': report_description # Store in Detected_Activities__c field
|
177 |
})
|
178 |
dpr_record_id = dpr_record['id']
|
179 |
salesforce_result += f"Created Daily_Progress_Reports__c record with ID: {dpr_record_id}\n"
|